创建了表,怎么会没有表头呢

「已注销」 2015-03-31 09:38:09
mytableview = UITableView(frame: CGRectMake(0,subjectheigh+subjectheigh,self.view.frame.width,self.view.frame.height), style: .Grouped)

if(mytableview?.tableHeaderView != nil)
{
println("it is not nil 1");

}
else
{
println("it is nil 1");

}


结果总是打印 it is nil 1,创建了表,怎么会没有表头呢?
...全文
140 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
c00216863 2015-04-16
  • 打赏
  • 举报
回复
楼主,看了你提的一些问题,发现你连iOS平台基础特性和语言的基本语法都没看就来问问题了呢
Nolan990 2015-04-01
  • 打赏
  • 举报
回复
楼上正解. --app++
ReyZhang 2015-04-01
  • 打赏
  • 举报
回复
你没有设置uitableview的tableheaderView它怎么会有值呢? 你说的表头指的是sectionheaderview ?

1,420

社区成员

发帖
与我相关
我的任务
社区描述
Swift,苹果于2014年WWDC(苹果开发者大会)发布的新开发语言,可与Objective-C共同运行于MAC OS和iOS平台,用于搭建基于苹果平台的应用程序。
swift 技术论坛(原bbs)
社区管理员
  • Swift
  • 网罗开发
  • 大熊猫侯佩
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧