第一种办法:
[myImageView layoutIfNeeded]; NSLog(@"w: %f, h: %f", myImageView.bounds.size.width, myImageView.bounds.size.height);
第二种办法:
- (void)viewDidLayoutSubviews { // VC just laid off its views }