문제

I've created a storyboard based UITableViewController which is working and displaying data.

I now need to add a toolbar that will always be at the bottom of the screen. To do this I have added a toolbar button to my storyboard which has it positioned at the bottom of the screen.

I have added the following to my tableviewcontrollers viewWillAppear method

[self.navigationController setToolbarHidden:NO];

As described here How to add a toolbar to the bottom of a UITableViewController in Storyboards?

However, I still get no toolbar...any ideas?

도움이 되었습니까?

해결책

You want show toolbar in one view controller which placed in some navigation controller.

- (void)viewWillAppear:(BOOL)animated
{
//View will appear
    [self.navigationController setToolbarHidden:NO animated:YES];
}

- (void)viewWillDisappear:(BOOL)animated
{
//View will disappear
    [self.navigationController setToolbarHidden:YES animated:YES];
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top