If I have a UIView, called " someView", than, I have a controller, which is called "myController". I want to assign the someView with myController, how can I do so in code? Thank you.
A:
From:
If you specify the views manually, you must implement the loadView method and use it to assign a root view object to the view property.
Read about loadView here:
Lou Franco
2010-09-02 11:53:38
+1
A:
Basically:
Read what @Lou Franco suggests.
Implement the load view like that:
- (void)loadView {
[super loadView];
MyCustomView *view = [[MyCustomView alloc] initWithFrame:self.view.frame];
self.view = view;
[view release];
// Setup other views if needed
}
vfn
2010-09-02 12:47:31