1

I need to implement several views on a single iPad screen. I am creating several classes and then corresponding xib files. I have one main (root) view controller which will manage all the views for the screen. I am not sure how to achieve this. I am using IB for nib files instead of creating views programmatically.Is this a good approach? How to set views on a particular position? Can any one guide me or any better approach.

1 Answer 1

2

im not sure how correct this is but i use

UINib *nib = [UINib nibWithNibName:nibName bundle:nil];
NSArray *views = [nib instantiateWithOwner:owner options:nil];
UIView *view = [views objectAtIndex:0];

when i want to get a view from a nib and use it as a uiview and move its frame around etc. hope that helps

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.