坐标点

2018-05-24  本文已影响7人  zhao1zhihui

1、

//相对屏幕的坐标
UIWindow * window=[[[UIApplication sharedApplication] delegate] window];
CGRect rect=[label convertRect: label.bounds toView:window];
// 是否包含点
CGRectContainsPoint(self.mySubjectView.bounds, point)
// 求点等等
[self.mySubjectView convertRect:<#(CGRect)#> fromView:<#(nullable UIView *)#>];
[self.mySubjectView convertRect:<#(CGRect)#> toView:<#(nullable UIView *)#>];
上一篇 下一篇

猜你喜欢

热点阅读