开发者

Iphone Navigation problems

i am designing an app which requires the following structure

  • T开发者_JAVA百科ab Bar controller (3 tabs always available, Home, photos and setting)

    First tab (Home tab)

    -Contains a view controller with 5 buttons (News,events,offers, maps and feed)

    • Clicking on any of the above button should load another view which has the following requirement 1) 5 Buttons on top (News, events, offers, maps and feed) 2) A view that dynamically changes based on the above selection.

      -Clicking on News, events,offers launches a UIWebview and changes the loadString via the application delegate. Clicking on Map or Feed, launches two different views. 
      

What I have tried so far is: 1)I have a tabbarcontoller which has its first tab set to to a generic view controller. 2) On load the view controller calls the view with the 5 buttons so application is starting correctly 3) Clicking on (News, events, offers) opens another view controller which has a UIWebView and displays the proper url. There are buttons on top which allows them to switch between 5 functionality. When the user clicks on maps or feed, two different views are loaded as subviews accordingly. However, if i try doing that from the parent page, the views dont appear

To add to my problem if i click on the main tabbar (Home, photos or setting) the tabs are switching views but when I revert to the home tab, it should display the parent view with the 5 buttons.

The first view is being displayed but it is slightly moved up. In the bottom between the view and the tab bar there is small space where the last viewed UIWebview can be seen. So its not removing the previous views. Also navigating using one of the five buttons again opens the view again but the main tab bar is now hidden :(

Can anyone offer some help.

cheers,


I think you need to take your all TabbarController view as Navigation controller. So you can navigate between views without any problem. Take your 3 main view (Home, Photos, Settings) as NavigationController so when you tap any of the tab you will have rootviewController and you can navigate to any view from that tabs.

Hope this help.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜