开发者

Display modally a Tabviewcontroller with 3 tabs when clicking a tool Bar button

开发者 https://www.devze.com 2023-03-30 04:24 出处:网络
I\'m beginner in Iphone development. I have an app in which there is a tool bar ,when I click the tool Bar buttonI need to display modally a Tabviewcontroller with 3 tabs and navigation bar. Is it pos

I'm beginner in Iphone development. I have an app in which there is a tool bar ,when I click the tool Bar buttonI need to display modally a Tabviewcontroller with 3 tabs and navigation bar. Is it possible to do this? May be it is simple,but开发者_如何学C i'm a beginner. How it can done? Any help would be appreciable.


What is the issue that you are facing? Overall this is what you need to do:

  1. Create a UITabBarController with 3 items. (There are resources everywhere where you can figure how to do this)

  2. Handle what you do with the 3 views/tab items. Your navigation bar logic goes there. You set up the navigation bar for the 3 different views from the 3 tabs.

  3. Present it as a modal view using:

    [self presentModalViewController:yourTabBarController animated:YES];

0

精彩评论

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

关注公众号