开发者

present multiple ModalViewController

开发者 https://www.devze.com 2023-02-10 15:11 出处:网络
I would like to present/show 2 modalviewcontroller at the same time. It is possible to show the first one with no animation, and directly the second one with the animation. This work.

I would like to present/show 2 modalviewcontroller at the same time. It is possible to show the first one with no animation, and directly the second one with the animation. This work.

The problem with this: the first one is shown while the animation of the second one is playing. That's not good. How can I fix that ?

  • The first one fully transparent ? Is that possible, if yes, how ? I tried without success.
  • Is it possible to "insert" the first modalviewcontroller below when the second one has ended its ani开发者_开发百科mation ? (Like this, when dismissing the second, the first modal will be shown)
  • Others ideas ?

Thank you !


Ever look up what "modal" means?

I would suggest making one just a plain old view and use only one view controller at a time as Apple recommends... at the very least you need to make one of them a plain old view controller, as your hierarchy is all confuzzled when you attempt to present two modal controllers at once...

0

精彩评论

暂无评论...
验证码 换一张
取 消