I have a one lone TableViewController configured in StoryBoard. I decided, its better to connect it programmatically, rather than with segues, so, I use this code to present my ViewController:
UIStoryboard *aStoryboard = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]];
NewProjectViewController *newProject = [aStoryboard instantiateViewControllerWithIdentifier:@"NewProjectViewController"];
newProject.delegate = self;
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:newProject];
[self presentViewController:navController animated:YES completion:nil];
But the ViewController being shown is simple TableViewController, but I have done some layout in Storyboard. Seems like a bug. I attached screenshots to the post to illustrate question.
Solved:
The problem was in these two methods, that overrode StoryBoard design:
#pragma mark - Table view data source
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
#warning Potentially incomplete method implementation.
// Return the number of sections.
return 0;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
#warning Incomplete method implementation.
// Return the number of rows in the section.
return 0;
}
They were uncommented, but other methods in UITableViewController were commented. Probably, I will have to program all the UI later, because this solution I wanted only for prototyping. Thanx MaKo for the help!