直接来实现表格协议的方法吧
实现协议 UITableViewDataSource、UITableViewDelegateUITableView必须用到的三个方法
1.提供表格有多少个分组(默认表格是一个分组)
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
2.提供指定的分组有多少行
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
3.提供表格单元格的内容
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
其他的有