我想处理Siri快捷方式自定义IntentUI中的表视图didSelectAtRow委托方法。
另外,我想处理在Siri快捷方式自定义IntentUI中的UIButton操作。
有没有可能出现这种情况?
请分享一些解决方案(如果可能)
#SiriShortcuts
#iOS12
#Custom IntentUI发布于 2018-08-15 04:48:01
您不能在自定义意图UI中处理交互,因为意图控制器不接收触摸交互。这是来自official documentation ->检查部分的要求和限制。
You can update your view controllers as needed using timers or other programmatic means. Your view controllers also receive the normal callbacks when they are loaded, shown, and hidden. However, your view controllers do not receive touch events or any other events while they are onscreen, and you cannot add gesture recognizers to them. Therefore, never create an interface with controls or views that require user interactions.
https://stackoverflow.com/questions/51747356
复制相似问题