gpt4 book ai didi

ios - TableViewCell(SubView) 触发按钮显示 Segue 到新 View Controller

转载 作者:行者123 更新时间:2023-11-30 12:36:28 25 4
gpt4 key购买 nike

我在tableviewcell中有一个按钮,其中Action Segue显示到下一个 View Controller 。我在 tableviewcell 内也有一个 UIView

I wish to use the UIView(Green) Tap gesture action to trigger the button show segue action

有什么指南可以引用吗?感谢您的阅读。

最佳答案

您不需要触发按钮操作来调用segue,您可以使用以下代码在点击手势操作中以编程方式调用它。

[self PerformSegueWithIdentifier:@"yourSegueId"发件人:nil];

关于ios - TableViewCell(SubView) 触发按钮显示 Segue 到新 View Controller ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42800223/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com