1.窗口坐标系统转化
- (CGPoint)convertPoint:(CGPoint)point toWindow:(UIWindow *)window; // can be used to convert to another window转化当前窗口一个坐标相对另外一个窗口的坐标
- (CGPoint)convertPoint:(CGPoint)point fromWindow:(UIWindow *)window; // pass in nil to mean screen 转化另外窗口一个坐标相对于当前窗口的坐标
- (CGRect)convertRect:(CGRect)rect toWindow:(UIWindow *)window; 转化当前窗口一个矩形坐标相对另外一个窗口的坐标
- (CGRect)convertRect:(CGRect)rect fromWindow:(UIWindow *)window; 转化另外窗口一个矩形坐标相对于当前窗口的坐标