CatDetailViewController - 快速创建一个新的信息输入ViewController
jopen
10年前
这是一个库适用于快速创建一个新的信息输入ViewController,并且能够利用block来代替繁琐的delegate,让代码更加紧凑.
#import "CatDetailViewController" CatDetailViewController *detailView=[[CatDetailViewController alloc] initSingleSectionViewWithTitle:@"Select Color" sections:@[@"Red",@"Blue"] defaultSectionText:cell.detailTextLabel.text saveHandle:^(NSString *saveResult) { //Do anything you want }]; [self.navigationController pushViewController:detailView animated:YES];