ios - 为何新建的View在navigationBar.subViews中位于栈底?
高洛峰
高洛峰 2017-04-18 09:24:27
0
2
382

如题

环境: Xcode-beta (8.0)
手机: iPhone 5S
系统: iOS 10.0

我在baseController中的willAppeardidAppearponavigationBar.subviews

数组结构如图. 为何didAppear中创建的视图会在数组的前面而非后面? 这导致了我视图层次结构有一些显示的问题. 我虽可在didAppearinsert时调整, 但因已didAppear了,所以之前的视图和insert之后调整的视图会有明显的效果. 这个效果并不是我想要的.

怎么图片不显示..........

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(2)
阿神

Solved.
Under the guidance of an expert, main queue asynchronous was added to viewDidLoad. The problem was solved, but when the secondary interface returns, the problem still exists. I don’t know the reason, but it needs to be solved.

左手右手慢动作

The bottom of the stack should be rootViewController, try setting this up

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template