【问题标题】:Can we handle tableview didSelect delegate or UIButton Action inside IntentViewController?我们可以在 IntentViewController 中处理 tableview didSelect 委托或 UIButton Action 吗?
【发布时间】:2019-01-15 18:12:03
【问题描述】:

我想在 Siri Shortcuts Custom IntentUI 中处理表格视图 didSelectAtRow 委托方法。

我还想在 Siri Shortcuts Custom IntentUI 中处理 UIButton Action。

有没有可能?

请分享一些解决方案(如果可能的话)

#SiriShortcuts 
#iOS12 
#Custom IntentUI

【问题讨论】:

    标签: ios12 sirishortcuts


    【解决方案1】:

    您无法在自定义 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.

    【讨论】:

      猜你喜欢
      • 2010-11-23
      • 1970-01-01
      • 2013-07-09
      • 1970-01-01
      • 2017-12-23
      • 1970-01-01
      • 1970-01-01
      • 2016-11-08
      • 2012-11-13
      相关资源
      最近更新 更多