开发者

Toolbar at the bottom not showing

开发者 https://www.devze.com 2023-03-15 21:12 出处:网络
I used the xcode4 xib file to design the following UI: View Table View Toolbar Bar Button Item Segmented Control

I used the xcode4 xib file to design the following UI:

View
   Table View
   Toolbar
      Bar Button Item
         Segmented Control
      Bar Button Item 
         Segmented Control

On the design sheet, 开发者_StackOverflowboth Table View and Toolbar show up; but when I run the app in simulator, the toolbar is not showing up.

I tried to make the table view invisible (as a test) and to bring the toolbar to the front. Still the toolbar does not show.

Do you have any idea what I might be doing wrong, and what I should try next? Do I need to do init for the toolbar in the .m file?

Thanks much!

Lu


Have you set the the toolbarHidden property of your UINavigationControllerto NO ? You have to explicitly do this to show the toolbar as it is defaulty set to YES. If this isn't the issue, we need to see some code, especially your toolbar initialization and etc.

0

精彩评论

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

关注公众号