简体   繁体   English

导航控制器无法嵌入

[英]Navigation Controller can not been embedded in

I have been using XCode Version 13.3 (13E113)for 3 months.我已经使用 XCode 13.3 (13E113) 3 个月了。 Had no any problem about it but today when I tried to add navigation controller, I encountered the following situation (Picture 1).没有任何问题,但是今天尝试添加导航控制器时,遇到了以下情况(图1)。

Picture1图片1

When I try to arrange view, this happens.当我尝试安排视图时,会发生这种情况。 (Picture 2) (图二)

Picture2图2

And when I try to delete navigation controller, Xcode is closed by itself.当我尝试删除导航控制器时,Xcode 会自行关闭。 I was using this XCode until now and I added navigation controller many times.到目前为止,我一直在使用这个 XCode,并且多次添加了导航控制器。 I do not know what happens.我不知道会发生什么。 I deleted XCode and load again.我删除了 XCode 并再次加载。 But nothing changed.但什么都没有改变。

Do you have any idea?你有什么主意吗?

I do not why but it is a bug.我不知道为什么,但这是一个错误。 It is not resolved by deleting and uploading again XCode.无法通过删除并再次上传 XCode 来解决。

This method worked for me.这种方法对我有用。 Add navigation controller and then open main.storyboard as source code.添加导航控制器,然后打开 main.storyboard 作为源代码。 Do nothing and open it again as interface builder.什么都不做,然后作为界面生成器再次打开它。 It's done.完成。 I have no any idea how.我不知道怎么做。

Have a good day.祝你有美好的一天。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 导航控制器为零,尽管嵌入在视图控制器中 - Navigation Controller is nil, though embedded in a view controller 搜索到嵌入有选项卡和导航控制器的视图控制器 - Segue to a view controller embedded with a tab and navigation controller iOS Unwind Segue在嵌入导航控制器时停止工作 - iOS Unwind Segue stops working when embedded in a navigation controller UIViewController已嵌入在导航控制器中,但是为手动UINavigationBar删除了导航控制器,但现在出错了 - Had UIViewController embedded in navigation controller, but removed navigation controller for a manual UINavigationBar, but it errors out now 如何将数据对象传递给嵌入在不同故事板中的导航控制器中的视图控制器 - How to Pass Data Object to View Controller Embedded in Navigation Controller in Different Storyboard 在StoryBoard TabBar上设置托管对象上下文-具有嵌入式导航控制器的表视图控制器 - Setting the Managed Object Context on a StoryBoard TabBar - Table view Controller with embedded Navigation Controller 在视图控制器之间传递数据使用从导航控制器中嵌入的视图到tabbarcontroller的segue - Passing Data between view Controllers Using a segue from a view embedded in a navigation controller to a tabbarcontroller 如何在 Swift 中将数据从父视图控制器传递到嵌入式视图控制器? - How can I pass data from a parent view controller to an embedded view controller in Swift? 您可以从多个导航控制器中选择一个情节提要视图控制器吗? - Can you segue to a storyboard view controller from multiple navigation controllers? 中止-导航控制器消失了 - Abort - navigation controller disappeared
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM