判断坐标是否有交集

2018-11-26  本文已影响4人  小凡凡520
override func viewDidLoad() {
    super.viewDidLoad()
    // Do any additional setup after loading the view, typically from a nib.
    
    CGRect(x: 0, y: 0, width: 0, height: 0).contains(CGPoint.zero)
    CGRect(x: 0, y: 0, width: 0, height: 0).contains(CGRect.zero)
}
上一篇下一篇

猜你喜欢

热点阅读