开发者

iPhoneOS, using applicationWillResignActive

开发者 https://www.devze.com 2023-01-14 12:29 出处:网络
I want to use this function applicationWillResig开发者_Go百科nActive perform some tasks. before the application shuts down due to incoming call, message or user close it manually.

I want to use this function applicationWillResig开发者_Go百科nActive perform some tasks. before the application shuts down due to incoming call, message or user close it manually.

Can i send an email message/in app sms using this function ? Will those tasks would be performed or the application would immediately quit due to the above mentioned interrupts. Thank you all.

Taimur


Before sending email or sms on iOS you have to display standard UI to user (either MFMailComposeViewController or MFMessageComposeViewController), but you can't present any new UI when application is going to resign active state, so the answer is no - those tasks cannot be performed

0

精彩评论

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

关注公众号