iOS----计算某个视图在屏幕上的frame
2017-09-14 本文已影响0人
H_A_N
//计算某个视图在屏幕上的frame
UIWindow* desWindow=[UIApplication sharedApplication].keyWindow;
CGRect frame = [self.phoneNumTextF convertRect:self.phoneNumTextF.bounds toView:desWindow];
//计算某个视图在屏幕上的frame
UIWindow* desWindow=[UIApplication sharedApplication].keyWindow;
CGRect frame = [self.phoneNumTextF convertRect:self.phoneNumTextF.bounds toView:desWindow];