转换坐标系

来源:互联网 发布:js disabled 失效 编辑:程序博客网 时间:2024/05/16 07:31

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;


0 0
原创粉丝点击