判断坐标是否有交集
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)
}