使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);
阅读(2484) | 评论(0) | 转发(0) |