テーブルビューがあり、行をクリックするたびに呼び出されるメソッドがあります。しかし、問題は、最初の数回はそれらの行をクリックしても何も起こらず、3回のようにすると意図したとおりに機能することです。これを引き起こす原因は何ですか?コードは次のとおりです。
- (void) tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath
{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Hey, do you see the disclosure button?"
message:@"Touch that to drill down instead"
delegate:nil
cancelButtonTitle:@"Won't happen again"
otherButtonTitles: nil];
[alert show];
}