`
seemefly163_0
  • 浏览: 19728 次
  • 性别: Icon_minigender_1
  • 来自: 厦门
最近访客 更多访客>>
社区版块
存档分类
最新评论

使UITableView最上面留出UINavigationBar空间的两种方法

阅读更多

使UINavigationBar透明,TableView在其下面,可以扩大UITableView的视野. 

1) 

UIView *headerView = [[UIView alloc] initWithFrame: CGRectMake(0, 0, 320, 44)]; 

m_tableView.tableHeaderView = headerView; 

2) 

m_tableView.contentInset = UIEdgeInsetsMake(44, 0, 0, 0); 

m_tableView.scrollIndicatorInsets = UIEdgeInsetsMake(44, 0, 0, 0);

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics