Ask a Question
Advertise on boostr.in
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?
Sep 7, 2015
to add a comment.
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
To avoid this verification in future, please