开发者

problem with adding tool bar to UITableView

开发者 https://www.devze.com 2023-02-01 06:38 出处:网络
I\'m writing a Navigation-Based iPhone app, and I\'d like to have a UIToolBar docked at the bottom of my screen, with a UITableView scrolling between the tool bar and the navigation bar.

I'm writing a Navigation-Based iPhone app, and I'd like to have a UIToolBar docked at the bottom of my screen, with a UITableView scrolling between the tool bar and the navigation bar.

I used [[self navigationController] setToolbarHidden:NO] and - (void)setToolbarItems:(NSArray *)toolbarI开发者_如何学运维tems animated:(BOOL)animated to set the UIToolBar.

UIToolBar correctly shows in current view. If I drill down into a detail view using the button on navigation bar, i cannot return back to previous view. Before I add the tool bar, it can return back. I am wondering is there anything else should be noted when use UIToolbar?


Returning back to a previous viewController on NavigationController stack shouldn't have anything to do with the toolbar. As long as you call the proper pop method:

[self.navigationController popViewControllerAnimated:YES];

In which method are you setting the toolbar and the toolbarItems?

0

精彩评论

暂无评论...
验证码 换一张
取 消