I am developing an application. In that in first view I place the one UIswitch
. By using that switch we start the application. When that switch was start in that time only the applic开发者_开发知识库ation should work otherwise the application should not work. Please provide any suggestions.
Apple strongly suggests not to do this. I think an app with this "feature" wont pass the review process.
In case you still want to do this you can call exit();
.
Another really bad approach is to access an index in an empty array.
Place your switch in first View and don't navigate user to next(your actual application view), till switch is not set to on.
精彩评论