0
在我的應用程序中,我已經完成了擴展表格視圖單元格,同樣需要展開單元格。我正在面臨再次插入擴展單元格的問題。是否可以這樣做?使用擴展的UITablviewcell添加新單元格
//cellForRowAtIndexPath:
[cell.expandButton addTarget:self action:@selector(expandAction:) forControlEvents:UIControlEventTouchUpInside];
if (indexPath.item < [array count] + 1) {
NSLog(@"Show one cell」);
}else{
NSLog(@"Show another cell")
}
//Button action
-(void) expandAction:(UIButton*)sender{
if (indexPath.item < [array count] + 1) {
NSLog(@"Show one cell」);
}else{
NSLog(@"Show another cell")
}
}
與出碼如何能夠幫助 –
別的嘗試RATreeview –
@ Anbu.Karthik我需要沒有任何庫來實現。 –