After turning the view, you can get the new dimensions of the view.
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation { CGRect myFrame = [self.view frame]; NSLog(@"height = %f", myFrame.size.height); NSLog(@"width = %f", myFrame.size.width); NSLog(@"x = %f", myFrame.origin.x); NSLog(@"y = %f", myFrame.origin.y); }
source share