我想在 Siri Shortcuts Custom IntentUI 中处理表格视图 didSelectAtRow 委托方法。
我还想在 Siri Shortcuts Custom IntentUI 中处理 UIButton 操作。
有没有可能?
请分享一些解决方案(如果可能)
#SiriShortcuts
#iOS12
#Custom IntentUI
我想在 Siri Shortcuts Custom IntentUI 中处理表格视图 didSelectAtRow 委托方法。
我还想在 Siri Shortcuts Custom IntentUI 中处理 UIButton 操作。
有没有可能?
请分享一些解决方案(如果可能)
#SiriShortcuts
#iOS12
#Custom IntentUI
您无法处理自定义意图 UI 中的交互,因为意图控制器不接收触摸交互。这来自官方文档-> 检查部分要求和限制。
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.