您的位置:首页 > 其它

转换坐标系

2016-02-04 09:43 204 查看
frame 是以父控件左上角为坐标原点

bounce是以自己的坐标系来算

- (CGPoint)convertPoint:(CGPoint)point toView:(nullableUIView *)view;

- (CGPoint)convertPoint:(CGPoint)point fromView:(nullableUIView *)view;

- (CGRect)convertRect:(CGRect)rect toView:(nullableUIView *)view;

- (CGRect)convertRect:(CGRect)rect fromView:(nullableUIView *)view;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: