我期待允許UITableViewCell
小號重新排序,並通過刷卡刪除刪除,但不是通過紅色刪除社交圈。啓用刷卡到刪除,同時展示訂貨控制上的UITableView
- (void)loadView
{
[super loadView];
[table setEditing:YES animated:NO];
}
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
{
if (editingStyle == UITableViewCellEditingStyleDelete) {
// Perform delete here
}
}
- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath
{
// Perform move here
}
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath
{
return UITableViewCellEditingStyleDelete;
}
- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath
{
return YES;
}
此外,我已經試過禁用編輯模式,並呼籲-[UITableViewCell setShowsReorderControl:YES]
沒有運氣。
Image http://booleanmagic.com/uploads/ReorderNotDelete.png
是的,我知道的屬性。 「鏈接帳戶」功能無效。阻力最小的路徑是創建一個新賬戶並孤立臨時賬戶。 – rpetrich 2012-09-04 01:18:04