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:
- Set up the head-up display (HUD) with all the UIs you want (this will be your base
UIViewController
). ) - Call it in a
UIView
and yourcontentView
or type something this is where all your dynamic content will be displayed. - Then your backing view controller adds another
UIViewController
as a child and it is assigned to it bycontentView
. - 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
Comments
Post a Comment