override func touchesBegan(touches: NSSet, withEvent event: UIEvent) { super.touchesBegan(touches, withEvent: event) let touch : UITouch = touches.anyObject() as UITouch if touch.view.isKindOfClass(UIPickerView) { } } if let picker = touch.view as? UIPicker { }
isKindOfClass
猜你喜欢
转载自wang-peng1.iteye.com/blog/2105488
今日推荐
周排行