有时候需要用代码的方式关闭程序,其实功能就像按了home键。
这两种可以用
- [self performSelector:@selector(notExistCall)];
- abort();
这两种是私有的,不能通过app store.
- [[UIApplication sharedApplication] performSelector:@selector(terminateWithSuccess)];
- exit(0);
http://blog.csdn.net/favormm/article/details/6444351