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
精彩评论