tableview单元格分隔线未在使用swift 2.0的ios开发中显示. Xcode 7 [英] tableview Cell separator line not showing in ios development using swift 2.0. xcode 7

查看:94
本文介绍了tableview单元格分隔线未在使用swift 2.0的ios开发中显示. Xcode 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试制作一个具有tableview的ios应用程序. 当我使用xcode 7.0.1开发时,它显示的是tableview单元格分隔线黑色细线. 使用Xcode 7.1.1更新后,它没有显示单元格分隔线.

I am trying to make an ios app which has tableview in it. When I was developing using xcode 7.0.1 it was showing tableview cells separator line Black thin line. After I updated with Xcode 7.1.1 , its not showing cell separator lines.

我尝试了3种方法-

  • 尝试了xcode右侧面板中的所有设置以显示单元格 分隔线.
  • 尝试使用DidLoad方法中的代码设置细胞系分离器
  • 还创建了新的SingleViewApp,但这也没有实现.没有任何办法可以解决问题.
  • Tried All the settings in the right panel of xcode to show cell separator line.
  • Tried setting up the Cell Line Separator using code in DidLoad method
  • creating new SingleViewApp as well, in that also its not coming. Nothing solves the issue.

我相信它要么是在xcode 7.1.1中的错误,要么在xcode中做了一些错误的全局设置,因为对于新应用程序,它也没有显示.

I believe either its bug in xcode 7.1.1 or I am done some wrong global settings in xcode, Because for new apps also its not showing.

请给我建议一些解决方法.

Please suggest me some solution.

推荐答案

当您的模拟器缩放到50%时,可能是一个错误.我将模拟器窗口缩放到75%(CMD + 2)或100%(CMD + 1),这似乎显示了分隔线.

It is possibly a bug when your simulator is scaled to 50% . I scaled the simulator window to 75% (CMD+2) or 100% (CMD+1) and that seems to show the separator lines.

这篇关于tableview单元格分隔线未在使用swift 2.0的ios开发中显示. Xcode 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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