开发者

How to stop the application?

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜