天天看點

iOS 計算某個視圖在螢幕上的frame

 //計算某個視圖在螢幕上的frame

    UIWindow* desWindow=[UIApplication sharedApplication].keyWindow;

    CGRect frame = [self.phoneNumTextF convertRect:self.phoneNumTextF.bounds toView:desWindow];

君凱商聯網-iOS-字唐名僧