【发布时间】:2015-09-06 22:24:32
【问题描述】:
在我正在开发的应用程序中,它允许用户在主时间轴上发帖,其他用户可以评论该用户的帖子,所以我一直在尝试在 tableView 中显示 cmets,但它没有显示。我已经确认数据正在发布以进行解析,因此它按预期工作,但是在显示 cmets 时,我似乎无法让它工作。我正在使用这个函数来显示 cmets:
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
var cell = tableView.dequeueReusableCellWithIdentifier("commentCell", forIndexPath: indexPath) as! CommentTableViewCell
cell.commentLabel?.text = comments![indexPath.row]
return cell
}
我的代码有什么问题吗?还是有其他显示 cmets 的方法?
【问题讨论】:
标签: ios iphone swift cocoa-touch parse-platform