项目中创建表格, 引用头文件 #import WBDataGridView.h - (void)viewDidLoad{ [superviewDidLoad]; // Do any additional setup after loading the view. self.view.backgroundColor = [UIColorwhiteColor]; CGFloat margin = 10.f; CGFloat width = self.view.frame.size.width -2*margin; // - 添加表格 - 两列 WBDataGrid