I’m trying to set up my main view without a NIB, so I’m using the loadView method:
No effect:
-(void)loadView {
self.view.frame = CGRectMake(100, 0, 320, 480);
}
No effect:
-(void)viewDidLoad {
self.view.frame = CGRectMake(100, 0, 320, 480);
}
This works:
-(void)viewDidAppear { //or viewWillAppear
self.view.frame = CGRectMake(100, 0, 320, 480);
}
(All methods call their respective super method, I just didn’t put that up there)
Can anyone explain why this is happening, and if there’s a way to adjust the view without viewDidAppear or viewWillAppear?
For more visit here
Hope, this will help you…