更新时间:2023-12-05 17:20:28
导航项是每个视图控制器.导航栏从当前正在构建其视图的视图控制器的导航项中绘制其内容,该视图对应于导航控制器堆栈顶部的视图控制器.
The navigation item is per view controller. The navigation bar draws its contents from the navigation item of the view controller whose view it's currently framing, which corresponds to the view controller at the top of the navigation controller's stack.
您基本上需要每个视图控制器在其导航项中粘贴一个取消按钮.您可以执行以下任何操作:
You basically need each view controller to stick a cancel button in its navigation item. You can do any of the following: