iphone how to set uiviewcontroller frame using -'iphone,ios,uiview,uiviewcontroller'

iphone how to set uiviewcontroller frame  using -'iphone,ios,uiview,uiviewcontroller'

I have a root UIViewController that I am adding other UIViewController's as subviews.  Currently each of the subviews are too low down (covering up my custom build tabbar).  When I try to so something like the following, it does not work:

// Test setting frame size to see if it works
self.view.frame = CGRectMake(0, 0, 200, 200);

That does nothing to change the frame size.

So, my question is, how can I set my frame when the UIViewController is initialized after it is added as the subview?

asked Sep 7, 2015 by rajesh
0 votes

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.