我需要实现terminateWithSuccess。我尝试过这个选项unrecognized selector sent to instance还有
AppDelegate *myDelegate = [[[AppDelegate alloc]init]autorelease];
[myDelegate terminateWithSuccess];
你们知道如何实现terminateWithSuccess而不出现任何错误吗?
非常感谢您的帮助。
最佳答案
这样调用它:
[[UIApplication共享应用]terminateWithSuccess];
关于iOS [AppDelegate TerminateWithSuccess] : unrecognized selector sent to instance,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17934354/