ios - 主故事板和模拟器显示不同的视图
问题描述
这是主故事板的屏幕截图:而不是主故事板屏幕模拟器显示了一个表格视图,其中列出了一堆名称图像和评论部分是不可见的
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return userEmailArray.count
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath) as! FeedCell
cell.useremailLabel.text = userEmailArray[indexPath.row]
cell.likeLabel.text = String(likesArray[indexPath.row])
cell.commentLabel.text = userCommentArray[indexPath.row]
cell.userimageView.image = UIImage(named: "selectImage.png")
return cell
}
解决方案
推荐阅读
- regex - 是否有正则表达式、perl 或 sed 可以从文件中的特定行组中删除一行?
- node.js - 尝试使用 npm install 时如何解决 NPM “418 I'm a teapot” 错误?
- java - 用于编码 UTF8 的 JENKINS 不可映射字符
- unix - 如何根据unix中的相同信息提取文本块
- python - python单元测试结构-如何更好地构建具有多个包和许多测试文件的项目?
- css - 什么是溢出的 -webkit-paged-y 和 -webkit-paged-x 值
- android - 适用于 Android 的 Gitlab CI 在运行功能测试时遇到问题
- javascript - window.reload() - 重新加载到锚页面的顶部
- linux - 如何读取附加到(又名,如tail -f)的文件的[非阻塞]文件描述符?
- r - Y 轴从 0 开始,最大值自动计算