How to quit itself in Objective-C application?

前端 未结 2 1035
没有蜡笔的小新
没有蜡笔的小新 2021-01-17 19:10

I have a URLHandler that launches some application, the main code is as follows.

@implementation URLHandlerCommand

- (id)performDefaultImplementation {
             


        
2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-17 19:48

    This has been answered here: Proper way to exit iPhone application? however you should also take a look at August's answer. Although it's not the accepted answer, it has been voted higher and it also follows Apple's set standards since Apple advises against force quitting iPhone applications.

提交回复
热议问题