I'm adding a UINavigationBar to UITableView programmatically but the UINavigationBar is blocking the first tableview cell.
Here is my code:
self.table = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStylePlain];
self.table.delegate = self;
self.table.dataSource = self;
[self.view addSubview:self.table];
UINavigationBar *navBar = [[ UINavigationBar alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 50)];
navBar.topItem.title = @"tableVIew";
[self.view addSubview:navBar];
My question is how can add the UINavigationBar without blocking any of the tableview cells.
I'll really appreciate your help.