我们可以在 IntentViewController 中处理 tableview didSelect delegate 或 UIButton Action 吗?
Can we handle tableview didSelect delegate or UIButton Action inside IntentViewController?
我想处理 table 在 Siri 快捷方式自定义 IntentUI 中查看 didSelectAtRow 委托方法。
我还想在 Siri 快捷方式自定义 IntentUI 中处理 UIButton 操作。
有可能吗?
请分享一些解决方案(如果可能)
#SiriShortcuts
#iOS12
#Custom IntentUI
您无法处理自定义 Intent UI 中的交互,因为 Intent 控制器不接收触摸交互。这来自 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.
我想处理 table 在 Siri 快捷方式自定义 IntentUI 中查看 didSelectAtRow 委托方法。
我还想在 Siri 快捷方式自定义 IntentUI 中处理 UIButton 操作。
有可能吗?
请分享一些解决方案(如果可能)
#SiriShortcuts
#iOS12
#Custom IntentUI
您无法处理自定义 Intent UI 中的交互,因为 Intent 控制器不接收触摸交互。这来自 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.