1. 使用prototype cell
**最快捷的方式,在tableviewcontroller中有cell,定义identifier,用于重用
2. 使用static cell
**当知道有哪些cell时才可以用,限制较大
**不需要提供数据源的代理方法
3. 手动创建static cell
**在cellForRowAtIndexPath中加入
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];if (cell == nil)
{
cell = [[UITableViewCell alloc]
initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
}
4. 使用nib文件
跟prototype类似