ios - 如何在 Xcode 中的 UINavigationController 上创建 BackButton?

标签 ios xcode uinavigationcontroller uinavigationbar

我遵循了一些教程,但是后退按钮是自动创建的。我创建了一个新的 View Controller ,并将导航显示设置为导航栏上的加号按钮。但是当导航到新的 View Controller 时,没有按钮返回到以前的 View Controller 。

enter image description here

我在这里:

enter image description here

最佳答案

在您的 ViewController 中放置 tableView 的地方。点击那个 ViewController 然后转到 -

EDITOR(on top of xcode)-> EMBED IN ->NAVIGATION CONTROLLER

运行您的项目。现在您将在新的 ViewController 中看到一个后退按钮。

关于ios - 如何在 Xcode 中的 UINavigationController 上创建 BackButton?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49720376/

相关文章:

ios - xcode 在 ios 中显示 3.5 英寸和 4 英寸屏幕的高度相同

ios - shouldAutorotate 未被调用

ios - 动画结束后设置新的 Controller

ios - 呈现时如何避免 View Controller 的多个实例

ios - 删除委托(delegate)方法的 2 个实现中的重复代码

ios - 在 UIDocumentPickerViewController 中显示自定义 UTI 的图标

iphone - 使用 touchXML 解析 SOAP 响应 - 一个问题

iphone - PerformSegueWithIdentifier 和 popViewControllerAnimated 破屏导航

ios - View Controller Segue Xamarin

来自 Objective C 的 C++ 方法