- Synchronized access to UITableViewDelegate logic
- //condition = YES in init code
- - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
- {
- @synchronized( self)
- {
- if( !condition)
- {
- NSLog(@"multiple execution is not allowed...");
- return;
- }
- condition = NO;
- ...
- //code
- ...
- }
- }