My App relay heavily on server data, when i have no connection to my server i cant present any data. so i present to the user a screen explaining him the no connection situation and give him a button to exit the application my question is: will it pass Appstore tests? i never tried it before and i know they dont like apps to use exit(0), i was also was suggested to put a screen with no buttons and block the user from going back to other app screens and put a message on this screen and make the user to click on the home button in order not to use exit(0) is that allowed?
No, you must not call exit
. Your app will be rejected. This has been repeatedly discouraged by Apple and is known to cause serious bugs with iOS multitask switching. You should simply leave the user to use the home button themselves.