I have a viewcontroller with a background image and title header. This view remains same most of the time. And I have different child views that i will be showing and hiding inside this viewcontroller.
How can i achieve this using storyboard?
Or is there any other elegant solution?
Thanks.
Please have a look at this tutorial: How to use a 'Container View' in iOS?
The overall idea is shown in the image.

It will be much easy to design your UI if you use container views.
Add the container view for all your child views.
Create properties for all the child container views in your main View Controller.
Design the child views with in the container view controller.
Apply business logic in your main view controller to show and hide the child views accordingly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With