Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reuse View for different Controllers Best way

I have 3 custom View Controllers having almost similar design.
How can I create a view (in Storyboard or using XIB) so that I can use the same view for my 3 View Controllers?

like image 785
UIBittu Avatar asked May 04 '17 07:05

UIBittu


1 Answers

Make custom view with xib add common design that all 3 view controller. Now add UIView in that view controller and give super class of that UIView to that custom class and this way you can use this custom view on 3 controller

See this i have use same view in multiple controller

enter image description here

like image 99
Jignesh Mayani Avatar answered Oct 14 '22 17:10

Jignesh Mayani