views:

70

answers:

0

Is it wrong to use

viewController.view = newView;

instead of

[viewController.view addSubView:newView];

The first removes the additional level of the viewControllers automatically created view, and if I create newView like this

UIView *newView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]; or like this UIView *newView = [[UIView alloc] initWithFrame:self.view.frame];

addSubview displaces the frame.origin.y by the height of the Status Bar.

Does anyone know a reason for using, or not using either method?