草庐IT

sectionsArray

全部标签

ios - Xcode iOS 仅在该部分添加部分和行

我想添加部分并在最后创建的部分中添加行。但是当我添加一个部分并添加一行后,它会为所有部分添加行,而我只想要最后创建的部分。我这样做:@interfaceSectionTestViewController(){NSMutableArray*sectionsArray;NSMutableArray*rowsInSectionsArray;NSIntegercurrentSection;}@end@implementationSectionTestViewController-(void)viewDidLoad{[superviewDidLoad];self.myTableView.dele