我有一个运行时,我的代码崩溃的异常处理程序,但我也需要一个MSG发送到服务器(parse.com)当发生这种情况,让服务器知道玩家已经停止播放,如何在异常处理程序中运行方法?
void onUncaughtException(NSException *exception)
{
NSLog(@"uncaught exception: %@", exception.description);
[self playerLoggedOut];
}
playerloggedOut行给出了未声明的标识符self的错误。
我怎样才能运行playerLoggedOut方法,当发生异常?