To get the screen size, you can use
CGSize screenSize = [[UIScreen mainScreen] bounds].size;
to get the size of your view e.g.
UIViewController* myViewController = [[UIViewController alloc] init];
what you can do is similar to the above
CGSize viewSize = myViewController.view.frame.size;
to install
myViewController.view.frame = CGRectMake(x, y, width, height);
source share