UITableView清空,iOS 9 beta 5更新 [英] UITableView Empty with iOS 9 beta 5 update

查看:153
本文介绍了UITableView清空,iOS 9 beta 5更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的iPhone上更新到Xcode 7然后更新iOS 9 beta 5后,我的UITableViews都没有显示数据,除了一个。他们都是从我的Parse数据库下载信息,而且工作的信息正在为表的一个部分完美地下载所有内容,而不是另一个部分。其他3个表视图下载信息,并计算正确的行数,但不显示任何内容。我尝试只显示所有单元格的静态文本,但它甚至没有显示。

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.

有关发生了什么的任何线索?我认为下载Parse数据不是问题,而是将其显示在tableviews上。

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.

我添加了该标签作为测试,但也没有出现...

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

这就是视图中的样子调试器。如您所见,它正确下载了正确的行数...... 2谢谢您和4个以上的对话。

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.

推荐答案

我不能说这是一个通用的解决方案,但在完全相同的情况下(tablviewcell内容在运行后空更新到XCode 7 beta 5)这解决了它:

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:

我必须浏览内容视图中的每个项目(包括所有约束)并勾选复选框安装在物业检查员中。最初只检查了wR hR。

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.

这篇关于UITableView清空,iOS 9 beta 5更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆