XHTwitterPaggingViewer
XHTwitterPaggingViewer copied to clipboard
UITableView goes under the navigation bar
Hello, i have tried your project and i have substitute the:
XHTableViewController *tableViewController = [[XHTableViewController alloc] init];
with a simple UITableViewController with xib, but the UITableview go under the UINavigationBar and the first two line are covered by the navigation bar. how i can do?
@Piero87 I'm not sure you need.
Jack
What you mean, how i can solve?
你的意思你用xib初始化对吗?
Yes i do it with xib inizialization...the uitableviewcontroller
this is an example:
NSMutableArray *viewControllers = [[NSMutableArray alloc] initWithCapacity:7];
NSArray *titles = @[@"Home", @"Friend", @"曾宪华", @"News", @"Viewer", @"Framework", @"Pagging"];
[titles enumerateObjectsUsingBlock:^(NSString *title, NSUInteger idx, BOOL *stop) {
TableViewController *tbv = [[TableViewController alloc] initWithNibName:@"TableViewController" bundle:nil];
tbv.title = title;
[viewControllers addObject:tbv];
}];
twitterPaggingViewer.viewControllers = viewControllers;
Same with UICollectionViewController... The view does extend to the edges (under the top navigation bar), but scroll view is not adjusted. Works fine for UITableViewController
I have encountered this issue, as a work arround, set the content inset of your tableview/collectionview
tableView.contentInset = UIEdgeInsets(top: 0, left: 0, bottom: 150, right: 0)