CatDetailViewController - 快速創建一個新的信息輸入ViewController

這是一個庫適用于快速創建一個新的信息輸入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];</pre>

CatDetailViewController - 快速創建一個新的信息輸入ViewControllerCatDetailViewController - 快速創建一個新的信息輸入ViewControllerCatDetailViewController - 快速創建一個新的信息輸入ViewController

https://github.com/K-cat/CatDetailViewController

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!