【发布时间】:2014-06-11 23:51:34
【问题描述】:
我想在调用它之前检查一个函数是否存在。例如:
if let touch: AnyObject = touches.anyObject() {
let location = touch.locationInView(self)
touchMoved(Int(location.x), Int(location.y))
}
如果存在,我想调用 touchMoved(Int, Int)。有可能吗?
【问题讨论】: