特定の遅延後に特定のメソッドを呼び出そうとする iPhone アプリケーションを開発しています。しかし、メソッドは呼び出されていません。呼び出されない理由がわかりません。
これが私のコードです
-(void)gettingCommentsList { // some stuff....
[self performSelector:@selector(callGetListInBackgroundMethod) withObject:nil afterDelay:1.0]; }
-(void)callGetListInBackgroundMethod {
isFromthread =YES;
NSLog(@"callGetListInBackground");
dispatch_async( dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
// Add code here to do background processing
//
//
[self gettingCommentsList];
dispatch_async( dispatch_get_main_queue(), ^{
// Add code here to update the UI/send notifications based on the
// results of the background processing
[self.commentsTbl reloadData];
});
});
}
ありがとう