diff --git a/Classes/ChatRoomTableViewController.m b/Classes/ChatRoomTableViewController.m index 038cc7935..1555b96f2 100644 --- a/Classes/ChatRoomTableViewController.m +++ b/Classes/ChatRoomTableViewController.m @@ -165,6 +165,9 @@ return cell; } + +#pragma mark - UITableViewDelegate Functions + - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { if(editingStyle == UITableViewCellEditingStyleDelete) { [tableView beginUpdates]; @@ -176,8 +179,13 @@ } } - -#pragma mark - UITableViewDelegate Functions +- (UITableViewCellEditingStyle)tableView:(UITableView *)aTableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath { + // Detemine if it's in editing mode + if (self.editing) { + return UITableViewCellEditingStyleDelete; + } + return UITableViewCellEditingStyleNone; +} - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { ChatModel *chat = [data objectAtIndex:[indexPath row]]; diff --git a/Classes/ChatTableViewController.m b/Classes/ChatTableViewController.m index 47e240fb6..dd32a5296 100644 --- a/Classes/ChatTableViewController.m +++ b/Classes/ChatTableViewController.m @@ -97,6 +97,14 @@ } } +- (UITableViewCellEditingStyle)tableView:(UITableView *)aTableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath { + // Detemine if it's in editing mode + if (self.editing) { + return UITableViewCellEditingStyleDelete; + } + return UITableViewCellEditingStyleNone; +} + - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { if(editingStyle == UITableViewCellEditingStyleDelete) { [tableView beginUpdates]; diff --git a/Classes/ContactsTableViewController.m b/Classes/ContactsTableViewController.m index 791aac85e..a26faef6a 100644 --- a/Classes/ContactsTableViewController.m +++ b/Classes/ContactsTableViewController.m @@ -225,4 +225,15 @@ static void sync_address_book (ABAddressBookRef addressBook, CFDictionaryRef inf } } + +#pragma mark - UITableViewDelegate Functions + +- (UITableViewCellEditingStyle)tableView:(UITableView *)aTableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath { + // Detemine if it's in editing mode + if (self.editing) { + return UITableViewCellEditingStyleDelete; + } + return UITableViewCellEditingStyleNone; +} + @end diff --git a/Classes/HistoryTableViewController.m b/Classes/HistoryTableViewController.m index a39ccaea2..7bf6de6a7 100644 --- a/Classes/HistoryTableViewController.m +++ b/Classes/HistoryTableViewController.m @@ -170,6 +170,14 @@ } } +- (UITableViewCellEditingStyle)tableView:(UITableView *)aTableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath { + // Detemine if it's in editing mode + if (self.editing) { + return UITableViewCellEditingStyleDelete; + } + return UITableViewCellEditingStyleNone; +} + - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { if(editingStyle == UITableViewCellEditingStyleDelete) { [tableView beginUpdates]; diff --git a/Classes/en.lproj/IncomingCallViewController.xib b/Classes/en.lproj/IncomingCallViewController.xib index c2a334da3..3e1babdb5 100644 --- a/Classes/en.lproj/IncomingCallViewController.xib +++ b/Classes/en.lproj/IncomingCallViewController.xib @@ -37,24 +37,6 @@ 274 - - - 274 - {320, 460} - - - - _NS:9 - NO - - - - IBCocoaTouchFramework - - NSImage - background.png - - 290 @@ -4661,7 +4643,6 @@ AAgAAAAIAAIACAACAAAAAgAAAAEAAQABAAE {{160, 0}, {160, 77}} - _NS:9 NO @@ -4695,7 +4676,7 @@ AAgAAAAIAAIACAACAAAAAgAAAAEAAQABAAE {320, 460} - + _NS:9 IBCocoaTouchFramework @@ -4771,16 +4752,9 @@ AAgAAAAIAAIACAACAAAAAgAAAAEAAQABAAE - - - 22 - - - background - 8 @@ -4870,7 +4844,6 @@ AAgAAAAIAAIACAACAAAAAgAAAAEAAQABAAE com.apple.InterfaceBuilder.IBCocoaTouchPlugin com.apple.InterfaceBuilder.IBCocoaTouchPlugin com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin com.apple.InterfaceBuilder.IBCocoaTouchPlugin com.apple.InterfaceBuilder.IBCocoaTouchPlugin com.apple.InterfaceBuilder.IBCocoaTouchPlugin @@ -4937,7 +4910,6 @@ AAgAAAAIAAIACAACAAAAAgAAAAEAAQABAAE {320, 154} {640, 523} {320, 339} - {640, 523} {640, 125} {320, 154} {320, 154} diff --git a/Classes/fr.lproj/IncomingCallViewController.xib b/Classes/fr.lproj/IncomingCallViewController.xib index 5ee8399cf..4feda601f 100644 --- a/Classes/fr.lproj/IncomingCallViewController.xib +++ b/Classes/fr.lproj/IncomingCallViewController.xib @@ -37,23 +37,6 @@ 274 - - - 274 - {320, 460} - - - _NS:9 - NO - - - - IBCocoaTouchFramework - - NSImage - background.png - - 290 @@ -4680,7 +4663,6 @@ AAgAAAAIAAIACAACAAAAAgAAAAEAAQABAAE {320, 460} - _NS:9 IBCocoaTouchFramework @@ -4756,16 +4738,9 @@ AAgAAAAIAAIACAACAAAAAgAAAAEAAQABAAE - - - 22 - - - background - 8 @@ -4855,7 +4830,6 @@ AAgAAAAIAAIACAACAAAAAgAAAAEAAQABAAE com.apple.InterfaceBuilder.IBCocoaTouchPlugin com.apple.InterfaceBuilder.IBCocoaTouchPlugin com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin com.apple.InterfaceBuilder.IBCocoaTouchPlugin com.apple.InterfaceBuilder.IBCocoaTouchPlugin com.apple.InterfaceBuilder.IBCocoaTouchPlugin @@ -4922,7 +4896,6 @@ AAgAAAAIAAIACAACAAAAAgAAAAEAAQABAAE {320, 154} {640, 523} {320, 339} - {640, 523} {640, 125} {320, 154} {320, 154} diff --git a/linphone.ldb/Contents.plist b/linphone.ldb/Contents.plist index 745ed530d..8ac28e0ac 100644 --- a/linphone.ldb/Contents.plist +++ b/linphone.ldb/Contents.plist @@ -3497,17 +3497,17 @@ backup - 6 + 7 class BLWrapperHandle name - Classes/IncomingCallViewController/6/IncomingCallViewController.xib + Classes/IncomingCallViewController/7/IncomingCallViewController.xib change date - 2012-09-25T14:18:43Z + 2012-09-26T14:28:27Z changed values class @@ -3517,7 +3517,7 @@ flags 0 hash - e42cdcfa6dd0a955773c32c95c8bb4f7 + 2b69f488ef4f2f7efc50f2d15639f7d0 name IncomingCallViewController.xib @@ -3732,9 +3732,9 @@ versions en - 6 + 7 fr - 6 + 7 diff --git a/linphone.ldb/Resources/Classes/IncomingCallViewController/6/IncomingCallViewController.xib b/linphone.ldb/Resources/Classes/IncomingCallViewController/7/IncomingCallViewController.xib similarity index 99% rename from linphone.ldb/Resources/Classes/IncomingCallViewController/6/IncomingCallViewController.xib rename to linphone.ldb/Resources/Classes/IncomingCallViewController/7/IncomingCallViewController.xib index c2a334da3..3e1babdb5 100644 --- a/linphone.ldb/Resources/Classes/IncomingCallViewController/6/IncomingCallViewController.xib +++ b/linphone.ldb/Resources/Classes/IncomingCallViewController/7/IncomingCallViewController.xib @@ -37,24 +37,6 @@ 274 - - - 274 - {320, 460} - - - - _NS:9 - NO - - - - IBCocoaTouchFramework - - NSImage - background.png - - 290 @@ -4661,7 +4643,6 @@ AAgAAAAIAAIACAACAAAAAgAAAAEAAQABAAE {{160, 0}, {160, 77}} - _NS:9 NO @@ -4695,7 +4676,7 @@ AAgAAAAIAAIACAACAAAAAgAAAAEAAQABAAE {320, 460} - + _NS:9 IBCocoaTouchFramework @@ -4771,16 +4752,9 @@ AAgAAAAIAAIACAACAAAAAgAAAAEAAQABAAE - - - 22 - - - background - 8 @@ -4870,7 +4844,6 @@ AAgAAAAIAAIACAACAAAAAgAAAAEAAQABAAE com.apple.InterfaceBuilder.IBCocoaTouchPlugin com.apple.InterfaceBuilder.IBCocoaTouchPlugin com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin com.apple.InterfaceBuilder.IBCocoaTouchPlugin com.apple.InterfaceBuilder.IBCocoaTouchPlugin com.apple.InterfaceBuilder.IBCocoaTouchPlugin @@ -4937,7 +4910,6 @@ AAgAAAAIAAIACAACAAAAAgAAAAEAAQABAAE {320, 154} {640, 523} {320, 339} - {640, 523} {640, 125} {320, 154} {320, 154}