在 Apple TV 上收集 Siri Remote 上的触摸时,触摸的位置总是报告为同一位置?
let tapRecognizer = UITapGestureRecognizer(target: self, action: "tapped:")
tapRecognizer.allowedPressTypes = [NSNumber(integer: UIPressType.LeftArrow.rawValue),NSNumber(integer: UIPressType.RightArrow.rawValue)];
self.view.addGestureRecognizer(tapRecognizer)
func tapped(tap :UITapGestureRecognizer){
print(__FUNCTION__)
print(tap.locationInView(super.view))
}
在 locationInView(xxx) 中尝试了各种选项,但没有。还检查了水龙头。在调试器中,可以看到任何东西。
任何想法,是否支持。