Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
514 views
in Technique[技术] by (71.8m points)

UITableView Empty with iOS 9 beta 5 update

After updating to Xcode 7 and then the iOS 9 beta 5 on my iPhone, none of my UITableViews are displaying data, except one. They are all downloading information from my Parse database, and the one that works, is downloading everything perfectly for one section of the table, but not the other. The other 3 table views download the information, and calculate the correct number of rows, however nothing is being displayed. I tried just displaying static text for all cells, however it is not even displaying that.

Any clue of what is going on? I don't think it is a problem with downloading the Parse data, but actually displaying it onto the tableviews.

 let cell:MyChinupsTableViewCell = tableView.dequeueReusableCellWithIdentifier("Cell") as! MyChinupsTableViewCell

    if namesArray.count > 0 {
        cell.nameLabel.text = namesArray[indexPath.row]
        cell.bodyText.text = chinUpsArray[indexPath.row]
        let count = likesArray[indexPath.row]
        cell.likeCount.text = "?? " + String(count)

    }

    return cell

It is another table view, but it still gets the point across. Unless I am missing something, everything is in the correct hierarchy here. enter image description here

I added that label as a test, and that is not appearing as well...

enter image description here

This is what it looks like in the view debugger. As you see, it correctly downloaded the correct amount of rows... 2 Thank You's and 4+ conversations.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I can't say if this is a universal solution, but in the exact same scenario (tablviewcell content empty at runtime after updating to XCode 7 beta 5) this solved it for me:

I had to go through every single item inside the content view (including all constraints) and tick the checkbox "Installed" in the properties inspector. Initially only wR hR was checked.

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...