iOS Question I have idea for exit from App

naifnas

Active Member
Licensed User
Hi all
I can exit App I write some wrong after exit
Example
B4X:
Button.left=0
but I not Initialize it
when work after exit
but this safe or stopped idea ???:(
 

tufanv

Expert
Licensed User
Longtime User
haha this is one of the most brightest idea I have ever seen :) no offence to topic starter I just liked it hahah
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
From Apple Technical Q&A QA1561 (https://developer.apple.com/library/content/qa/qa1561/_index.html):

Q: How do I programmatically quit my iOS application?
There is no API provided for gracefully terminating an iOS application.

In iOS, the user presses the Home button to close applications. Should your application have conditions in which it cannot provide its intended function, the recommended approach is to display an alert for the user that indicates the nature of the problem and possible actions the user could take — turning on WiFi, enabling Location Services, etc. Allow the user to terminate the application at their own discretion.

WARNING: Do not call the exit function. Applications calling exit will appear to the user to have crashed, rather than performing a graceful termination and animating back to the Home screen.

Additionally, data may not be saved, because -applicationWillTerminate: and similar UIApplicationDelegate methods will not be invoked if you call exit.

If during development or testing it is necessary to terminate your application, the abortfunction, or assert macro is recommended.

- Colin.
 
Upvote 0
Top