0
メインスレッドによって開始されたタイマーがあります。タイマーハンドラから通知を送信しています 5件中1件で、通知コードが実行されるとEXC_BAD_ACCESSを取得します。タイマーハンドラから通知を送信するココア
//Registering Notification
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(TestNotification:)
name:@"TestNotification" object:nil];
//Starting timer
timer = [NSTimer scheduledTimerWithTimeInterval:2
target:self
selector:@selector(timerhandler:)
userInfo:nil
repeats:YES];
//Posting notification from timer handler
[[NSNotificationCenter defaultCenter]
postNotificationName:@"TestNotification" object:nil];
誰かが助けることができます。
おかげ
'TestNotification:'メソッドを投稿してください。問題はおそらくそこにあります。 – spudwaffle