首页 > 移动平台 > 详细

iOS tableview 静态表布局纪录

时间:2016-05-14 18:38:52      阅读:134      评论:0      收藏:0      [点我收藏+]

今天使用了tableview静态表布局,纪录如下

1:使用tableview 静态表,必须是UITableViewController

2:Content 中选择 Static Cells 如下图

技术分享

3:

//去除尾部多余的空行

    self.tableView.tableFooterView = [[UIView alloc]initWithFrame:CGRectZero];

4:还要去掉以下方法,否则内容显示不出来

 

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {

#warning Incomplete implementation, return the number of sections

    return 0;

}

 

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {

#warning Incomplete implementation, return the number of rows

    return 0;

}

iOS tableview 静态表布局纪录

原文:http://www.cnblogs.com/68tour/p/5492866.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!