代理 先判斷 1. 有幾個section 2. 每個section 多少個cell
如果
設置的值都為0 那么就不執行
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{}
這個方法了
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
NSLog(@"numberOfRowsInSection返回為0的時候就不用執行cellForRowAtIndexPath");
return 0;