如何從UncaughtExceptionHandler調用方法?我有這個...從UnCaughtException Handler運行方法
void onUncaughtException(NSException *exception)
{
NSLog(@"uncaught exception: %@", exception.description);
[self playerLoggedOut];
}
但它讓我在[self playerLoggedOut];
這是C函數,那麼你對'self'的期望是什麼? –
好吧,我可以創建一個正常的Obj-c異常處理程序?是否有任何理由需要在C? – Phil