WhdeForm
WhdeForm copied to clipboard
iOS Form 表格
- (void)viewDidLoad { [super viewDidLoad]; self.edgesForExtendedLayout = UIRectEdgeNone; self.view.autoresizingMask = UIViewAutoresizingNone; FormScrollView *table = [[FormScrollView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height-64)]; table.contentInset = UIEdgeInsetsMake(0, 0, 0, 0); table.fDelegate = self; table.fDataSource...
Demo 的数据源中使用的 NULL 应该使用 nil。 总体用起来挺不错,建议再把样式搞一搞、通过代理设置每一列的宽度,可以积累很多星星✨ -- 有一些小疑惑: 表格的 cell 为什么选择用 UIButton 实现呢,有一种莫名的喜感……