UIViewController 中
- (void)viewDidLayoutSubviews
{ [super viewDidLayoutSubviews];//获取真实的frame
// NSLog(@"xzxx %f", _num_keyBoardView.frame.size.width);}
cell /Uiview
-(void)layoutSubviews {
[super layoutSubviews];
[self setNeedsLayout];
[self layoutIfNeeded];
NSLog(@"%@", _contenLabel);
网友评论