首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

使UITableView最上面留出UINavigationBar空间的两种步骤

2013-11-08 
使UITableView最上面留出UINavigationBar空间的两种方法使UINavigationBar透明,TableView在其下面,可以扩

使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);

热点排行