From 87ad785edacbc761243102cffcd14c145bbcf5ee Mon Sep 17 00:00:00 2001 From: giomfo Date: Fri, 5 Feb 2016 10:44:15 +0100 Subject: [PATCH] Bug Fix: Room members: Swipe mode is not available on iphone 5c iOS 8 #70 --- Vector/ViewController/RoomCreationStep2ViewController.m | 5 ----- Vector/ViewController/RoomParticipantsViewController.m | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Vector/ViewController/RoomCreationStep2ViewController.m b/Vector/ViewController/RoomCreationStep2ViewController.m index 2a5298f88..63c03a511 100644 --- a/Vector/ViewController/RoomCreationStep2ViewController.m +++ b/Vector/ViewController/RoomCreationStep2ViewController.m @@ -108,11 +108,6 @@ #pragma mark - UITableView delegate -- (NSArray *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath -{ - return [[NSMutableArray alloc] init]; -} - - (void)customizeContactCell:(ContactTableViewCell*)contactTableViewCell atIndexPath:(NSIndexPath *)indexPath { if (indexPath.section == participantsSection) diff --git a/Vector/ViewController/RoomParticipantsViewController.m b/Vector/ViewController/RoomParticipantsViewController.m index 329e210ab..d1e7f8bbf 100644 --- a/Vector/ViewController/RoomParticipantsViewController.m +++ b/Vector/ViewController/RoomParticipantsViewController.m @@ -607,6 +607,11 @@ return cell; } +- (void)tableView:(UITableView*)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath*)indexPath +{ + // iOS8 requires this method to enable editing (see editActionsForRowAtIndexPath). +} + #pragma mark - UITableView delegate - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section