【发布时间】:2017-12-19 05:17:23
【问题描述】:
在我的应用程序中,我已经在其中完成了展开的表格视图单元格,我需要再次展开单元格。我面临再次插入展开的单元格的问题。有可能吗?
//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 我需要在没有任何库的情况下实现。
标签: ios objective-c xcode uitableview expand