Modals dismissing at random

I have two questions --

1) How can I prevent a modal from being dismissed when the app enters the background?

2) I have a modal I'm presenting that gets dismissed seemingly at random if it's displayed within the first several seconds of app launch but stays displayed indefinitely otherwise. No other code is calling dismiss, and none of the UIAdaptivePresentationControllerDelegate dismissal methods get called. What other actions / etc would cause a modal presentation to be dismissed like that?

Could you provide more information on what you're trying to do ?

  1. How can I prevent a modal from being dismissed when the app enters the background?

This depends, does your app get terminated in the background?

and Is this behavior occurring on a specific iOS version?

also Is the modal being presented immediately after launch, or after the main interface is loaded?

Modals dismissing at random
 
 
Q