[英]How to handle correctly the views
I've a problem because of my views inside a Navigation Controller. 我有一个问题,因为我在导航控制器中的视图。 Picture 1 describes my main view.
图1描述了我的主要观点。 If I click something in the main view, it should push to ViewController B. That happen but the new UI looks like Picture 2. But I want the UI looks like Picture 3 - that means ViewController C and ViewController D should be disabled.
如果我在主视图中单击某个东西,它应该推送到ViewControllerB。这会发生,但是新的UI看起来如图2所示。但是我希望UI看起来如图3所示-这意味着应该禁用ViewController C和ViewControllerD。 And if I go back from ViewController B it should looks like Picture 1 again.
如果我从ViewController B返回,它应该再次看起来像图1。
I know the picture is a little bit confusing but I hope you guys understand my problem. 我知道图片有点混乱,但我希望你们能理解我的问题。
Sorry I come with question but 对不起,我有疑问,但是
from your illustration and current situation, look like C,D are children of NavigationController but may not be UINaviationController.viewControllers
? 从您的插图和当前情况来看,C似乎是NavigationController的子级,但可能不是
UINaviationController.viewControllers
吗?
So if that's the case, your have to add C,D as children of A, then when you push B from A, it should become picture 3. 因此,如果是这样,您必须将C,D添加为A的子代,然后当您从A推入B时,它应该变成图片3。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.