テーブルビューがリロードしたい特定の名前をクリックすると、テーブルビューにいくつかの名前があり、選択した名前からセルを追加します。次に、サブセルをクリックして、さらにセルをロードします。どうすればこれを行うことができますか
1 に答える
0
以下は、テーブルからセルを選択するたびに呼び出されるデリゲートです
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
NSLog(@"*****you have selected a cell ********* ");
NSLog(@"selected cell row = %i and section = %i",indexPath.row,indexPath.section);
// Add more data to the array which is populating the table so that to add more cells
[your_Table reloadData]; // This will reload your table with new data which you added to your Array
}
于 2012-08-08T06:28:48.517 に答える