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我需要没有任何库来实现。 –