【发布时间】:2015-09-07 01:59:16
【问题描述】:
我有一个包含用户回复帖子的 cmets 的数组,它们保存在 Parse.com 中,但是当我尝试在 tableView 中显示它们时,它们似乎没有显示出来。这是我用来在 tableView 中显示 cmets 的。
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
var cell = tableView.dequeueReusableCellWithIdentifier("commentCell", forIndexPath: indexPath) as! CommentTableViewCell
cell.commentLabel?.text = comments![indexPath.row] as String
return cell
}
我已经尝试了代码的其他一些变体以及此处的其他一些帖子试图找到答案,但仍然没有运气。 我可以确认数据已保存在 Parse 中,但它似乎没有显示在应用程序中。我做错了什么?
【问题讨论】:
标签: ios iphone swift cocoa-touch parse-platform