Control view hierarchy when viewController is different

Asked 2 years ago, Updated 2 years ago, 92 views

The UITabBarController maintains a subView of the viewController. I would like it to be displayed before the subView of the UITabBarController view.

Layer.zPosition, blingSubviewToFront:, etc. are not related to siblings.I think it's invalid in this case, but is there any way?

swift ios objective-c

2022-09-30 21:22

1 Answers

I think that the viewController's view held by the UITabBarController is internally addedSubView() to the UITabBarController's view.
Therefore, I think it is possible to solve this problem if you use the view you want to display at the front with bringSubViewToFront:.


2022-09-30 21:22

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.