ios - 如何通过搜索栏创建到另一个 View Controller 的转场?

标签 ios objective-c cocoa-touch segue

<分区>

当执行 searchBarSearchButtonClicked 时,如何创建到另一个 View Controller 的 segue?

最佳答案

  1. 创建从 Controller 到 Controller 的转场。 (注意:不是来自任何 Controller 的控制,而是来自 Controller )。
  2. 设置 segue 标识符。
  3. searchBarSearchButtonClicked 方法中调用 [self performSegueWithIdentifier: @"your segue identifier"sender: self];

关于ios - 如何通过搜索栏创建到另一个 View Controller 的转场?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19565314/

相关文章:

ios - 不使用 JSON 的简单 RestKit 登录

ios - 将 View Controller 连接到委托(delegate)类 - CLLocationManager/iOS8

cocoa-touch - iOS 应用程序因 'message sent to deallocated instance' 而崩溃

ios - 使用与系统区域符号不同的区域符号

iPhone - 当用户触摸状态栏时,使 UIWebView subview 滚动到顶部(iOS 4)

ios - 测试 iOS 应用程序时,Teamcity Step 测试(命令行)失败

ios - Swift UITableView 委托(delegate)和数据源声明和保留周期

ios - 如何在 ios 中重新注册推送通知

ios - 数组支持任何类型的值

objective-c - 类对象的快速枚举