ios - A permanent navigation bar with UI elements -


There are some top views in our app, which appears all the time at this time in the UITextField UIButton s, side scroller , and segment control , and they are dynamic.

I was thinking about the navigation control , or tab bar , but it seems that when you hit them, the scene behind them ( Full screen) is changing. That they can not have a text field and scroller .

So my main idea was to make some of my costume views.

The question is, how can I create a view in the storyboard, and instead of making it another view (+ visual controllers), which will be replaced according to the upper bar?

I want to create 5 scenes in the storyboard , and want to switch between them according to the bar. I feel like a job for the prevention scene controller I have used the technology many times, Which create a set of static controls on the screen, which you can describe and inject in the re-usable content in an app in many places.

The basic concept is:

  1. Set up the head-up display (HUD) with all the UIs you want (this will be your base UIViewController ). )
  2. Call it in a UIView and your contentView or type something this is where all your dynamic content will be displayed.
  3. Then your backing view controller adds another UIViewController as a child and it is assigned to it by contentView .
  4. Your visual controller continues to remove and add children to their content as needed in contentView .

If you are unfamiliar with the technology that performs a web search for "see controller control tutorials" (by NSCookbook) there are many

There is also a good WWDC (2011) video that presents the concept

Comments