iPhone — create UITabBar programmatically?

后端 未结 1 523
醉梦人生
醉梦人生 2021-01-06 04:17

How does one do this?

Note that I do not want a controller. Just a tab bar.

相关标签:
1条回答
  • 2021-01-06 05:05

    UITabBar *aTabBar = [[UITabBar alloc] initWithFrame:aFrame];

    You’ll probably need to refer to the class documentation for instance methods like -setItems:animated:. Also, see the UITabBarDelegate protocol.

    0 讨论(0)
提交回复
热议问题