第一种办法:
[myImageView layoutIfNeeded]; NSLog(@"w: %f, h: %f", myImageView.bounds.size.width, myImageView.bounds.size.height);
第二种办法:
- (void)viewDidLayoutSubviews { // VC just laid off its views }
第一种办法:
[myImageView layoutIfNeeded]; NSLog(@"w: %f, h: %f", myImageView.bounds.size.width, myImageView.bounds.size.height);
第二种办法:
- (void)viewDidLayoutSubviews { // VC just laid off its views }
转载于:https://www.cnblogs.com/timelog/p/7754843.html