作成したテーブルビューprogamatically ...は、didSelectRowAtIndexPath方法は
attatchmentTableView=[[UITableView alloc]initWithFrame:CGRectMake(attatchmentsLabel.frame.origin.x+200, attatchmentsLabel.frame.origin.y-20, issueHistoryTextView.frame.size.width, 100) ];
attatchmentTableView.scrollEnabled=YES;
//attatchmentTableView.userInteractionEnabled=YES;
attatchmentTableView.layer.borderColor = [UIColor purpleColor].CGColor;
attatchmentTableView.allowsSelectionDuringEditing=YES;
attatchmentTableView.layer.cornerRadius = 10.0f;
attatchmentTableView.allowsSelection=YES;
attatchmentTableView.layer.cornerRadius=4;
attatchmentTableView.layer.borderWidth=3.0f;
attatchmentTableView.delegate=self;
attatchmentTableView.dataSource=self;
[createIssueView addSubview:attatchmentTableView];
とimpletementedテーブルビューdatasource
とdelegate
メソッドを実行しますが、didSelectRowAtIndexPath
メソッドを呼び出すことはできません。
ので、いずれかがおそらくそれは無用ですが、ちょうどuserinteractionenabled = true
を追加しようと事前
更新質問を。 –
あなたの現在のクラスに 'UITableViewDelegate'を追加しました –
これをチェックしてくださいhttp://stackoverflow.com/questions/255927/didselectrowatindexpath-not-being-called –