ios - UIViewController with conditional number of elements -


I have a UIViewController with IBButton's IBOutletCollection. The thing I am trying to achieve is that it has several view controllers Is the amount of the same button in the outlet collection with only the difference. What is the correct way to implement it? Assume that layout controllers' layout can be designed in the storyboard.

How should I do this? Thank you.

Create a UIView Controller with something you can not do to the storyboard.

 - (instancetype) initWithButton: (NSArray *) Button {self = [super init]; If (self) {self.buttonsArray = buttonsArray; } Healthy return; } - (zero) viewDidLoad {// button here to see the root} 

Now create examples of this view controller with different button arrays.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -