开发者

UITabBarController embedded in a UINavigationController

开发者 https://www.devze.com 2023-01-11 23:17 出处:网络
The main flow of my project is controlled by a UINavigationController. I need to embed a UITabBarController in one of the screens to provide 3 views. Can anyone guide me on how to do this?

The main flow of my project is controlled by a UINavigationController. I need to embed a UITabBarController in one of the screens to provide 3 views. Can anyone guide me on how to do this?

Let me explain my flow a bit, so that the necessity of this becom开发者_运维问答es clear. In a typical usecase -

  • The user logs in
  • Picks a few filters and clicks a button
  • A work queue is displayed based on these filters
  • When the user picks one of the elements from this work queue, he drills down into a screen which needs to present 3 views.
    1. Most frequently used actions
    2. History of actions
    3. Manual search
  • These are just used like a radio button and the user can go back and forth between these 3 views, and once he's done, he needs to return to the work queue.

The navigationcontroller is therefore at the top for me, to allow him to go back and forth between login <-> filters <-> Workqueue <-> Actions [Favorites, History, Search]

Thanks,

Teja.


you will need to present the uitabbarcontroller modally

0

精彩评论

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