xcode - Swift - 我如何从 ViewController 转到 TabBarController

标签 xcode swift uistoryboardsegue

如何在 Swift 中的 TabBarController 之前添加 ViewController?我正在使用 Parse 在 ViewController 中进行自定义登录,这将导致 TabBarController...帮助将不胜感激!

最佳答案

1. 按住 Control 从黄色符号 (ViewController) 拖动到 TabBarController

enter image description here


这将在您的 ViewController 菜单中创建一个 segue

enter image description here


2. 点击这个新的 segue“Show segue to Tab...”并在身份检查器中设置一个标识符名称。

enter image description here


3. 现在,当您想要进行 segue 时,请使用 call...

performSegueWithIdentifier("WhatEveryYouNamedSegue", self)

关于xcode - Swift - 我如何从 ViewController 转到 TabBarController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30419087/

相关文章:

iphone - UIScrollView 奇怪的 ScrollIndicator 与 UITableView 相比

ios - 在界面生成器中调整主视图的大小

swift - 在 NSMutableAttributedString 中查找子字符串的范围

ios - 关闭模态视图时如何在 UITableView 中显示数据

iOS 以编程方式向下钻取导航堆栈

ios - projectName 没有 deviceName 可以执行的架构

ios - 使用带有 swift 的格式化文本字段创建具有安全文本输入的 PIN 码

ios - XCode6 二进制文件无效,ITC 支持未提供详细信息

ios - 管理 CKQuerySubscriptions

ios - 使用 UIButton 转接 TableViewCell