重写-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath方法 ;
优化步奏 :
1,统一标示符,使用static的目的可以保证表格标示符永远只有一个
static NSString *cellIdentifier = @"myCell";
2,在缓冲池中查找名为myCell的单元格对象
UITableViewCell *cell = [tableView dequeueResuableCellWithIdentifier:cellIdentifier];
3,如果没有找到,实例化新的cell
if(cell == nil){
cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier];
}