只要cell是从storyboard里面创建出来的, 就不调用init开头的方法, 但是会调用awakeFromeXib的方法
- (void)tableView:(UITableView *)tableView
commitEditingStyle:(UITableViewCellEditingStyle)editingStyle
forRowAtIndexPath:(NSIndexPath *)indexPath;
// Data manipulation
- reorder / moving support ,, tableView实现左滑动删除!!
reloadRowsAtIndexPaths:<#(NSArray *)#> withRowAnimation:<#(UITableViewRowAnimation)#> // tableView的局部刷新
tableView.editing=YES //让tableView 进入删除的状态
原文:http://www.cnblogs.com/cubeTC/p/3660483.html