首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我们可以在IntentViewController中处理tableview didSelect委托或UIButton操作吗?

我们可以在IntentViewController中处理tableview didSelect委托或UIButton操作吗?
EN

Stack Overflow用户
提问于 2018-08-08 20:56:36
回答 1查看 104关注 0票数 1

我想处理Siri快捷方式自定义IntentUI中的表视图didSelectAtRow委托方法。

另外,我想处理在Siri快捷方式自定义IntentUI中的UIButton操作。

有没有可能出现这种情况?

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

代码语言:javascript
复制
#SiriShortcuts 
#iOS12 
#Custom IntentUI
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 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.

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51747356

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档