Weird behavior of UIView frame after rotation in iPhone
问题 Create a square UIView object testView_, and add this at viewDidLoad: - (void)viewDidLoad { [super viewDidLoad]; CGRect initialRect = testView_.frame; NSLog(@"before rotation: w %f h %f x %f y %f", initialRect.size.width, initialRect.size.height, initialRect.origin.x, initialRect.origin.y); testView_.transform = CGAffineTransformMakeRotation(0.1); NSLog(@"after rotation: w %f, h %f, x %f, y %f", testView_.frame.size.width, testView_.frame.size.height, testView_.frame.origin.x, testView_.frame