[英]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)。
When I try to arrange view, this happens.当我尝试安排视图时,会发生这种情况。 (Picture 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.