I have a custom view that I made with the IB file, as it is rather complicated: (RotatorView.xib / .h / .m). I want to add RotatorView as a subtask to the view controller. I can do this programmatically using:
NSArray *array = [[NSBundle mainBundle] loadNibNamed:@"RotatorView" owner:self options:nil];
But I would rather not do this. It would be better for my design if I could add a RotatorView to the View Viewer canvas in Interface Builder. That way, I could use IB to manage the properties of each instance of RotatorView instead of setting the properties programmatically in each class. Is there a way so that I can add my custom view from XIB to the parent controller? Should I create an IB plugin for this?
Steve source share