room_members_search

-> improve vectorContactTableViewCell to display a custom accessory view
-> Update the room creation step 2 viewcontroller.
This commit is contained in:
yannick
2015-12-21 10:00:49 +01:00
parent 3a04fae8a1
commit 6bb821e965
6 changed files with 98 additions and 28 deletions
@@ -24,8 +24,6 @@
#import "Contact.h"
#import "VectorContactTableViewCell.h"
@interface RoomParticipantsViewController ()
{
// Add participants section
@@ -478,6 +476,11 @@
return count;
}
- (void)customizeContactCell:(VectorContactTableViewCell*)contactCell atIndexPath:(NSIndexPath*) indexPath
{
// TODO by the inherited class
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = nil;
@@ -501,9 +504,12 @@
if (!participantCell)
{
participantCell = [[VectorContactTableViewCell alloc] init];
// do not show the custom accessory view
participantCell.showCustomAccessoryView = NO;
}
participantCell.room = self.mxRoom;
participantCell.mxSession = self.mxRoom.mxSession;
participantCell.mxRoom = self.mxRoom;
Contact *contact = nil;
@@ -573,9 +579,10 @@
}
else
{
participantCell.bottomLineSeparator.hidden = ((indexPath.row + 1) != mutableParticipants.count);
participantCell.bottomLineSeparator.hidden = ((indexPath.row+1) != mutableParticipants.count);
}
[self customizeContactCell:participantCell atIndexPath:indexPath];
[participantCell render:contact];
cell = participantCell;