在prepareForSegue之前如何在内部进行修饰 [英] how to perform touch up inside before prepareForSegue

查看:54
本文介绍了在prepareForSegue之前如何在内部进行修饰的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用自定义UITableViewCell,此单元格包含圆形矩形. 该圆角矩形内部限制为动作修饰,并且使用同一按钮对另一个视图执行缝合操作.

I am using a Custom UITableViewCell and this cell contains round rect. This round rect is bounded to action touchup inside and same button is used to perform segue to the other View.

prepareForSegue首先被调用,然后调用内部补全方法.

prepareForSegue is called first and then it calls the touch up inside method.

有什么办法可以扭转这种情况吗?

Is there any way to make this reversed?

推荐答案

您可以在内部进行修饰时调用一种方法
编写您真正想要做的事情的代码
然后,您可以使用以下代码来执行视图操作
[self performSegueWithIdentifier:@"your segue identifier" sender:self];
希望对您有所帮助的视图控制器.

you can call one method on touch up inside
write your code for what you exactly want to do
and after that you can call your viewcontroller by using following code to perform segue operation
[self performSegueWithIdentifier:@"your segue identifier" sender:self];
Hope that will help.

这篇关于在prepareForSegue之前如何在内部进行修饰的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆