mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-23 10:02:46 +02:00
RoomParticipantsViewController: Add possibility to display cancel bar button.
This commit is contained in:
@@ -520,7 +520,15 @@
|
||||
// Check whether the view controller is currently displayed inside a segmented view controller or not.
|
||||
UIViewController* topViewController = ((self.parentViewController) ? self.parentViewController : self);
|
||||
topViewController.navigationItem.rightBarButtonItem = nil;
|
||||
topViewController.navigationItem.leftBarButtonItem = nil;
|
||||
|
||||
if (self.showCancelBarButtonItem)
|
||||
{
|
||||
topViewController.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:@selector(onCancel:)];
|
||||
}
|
||||
else
|
||||
{
|
||||
topViewController.navigationItem.leftBarButtonItem = nil;
|
||||
}
|
||||
}
|
||||
|
||||
- (void)onAddParticipantButtonPressed
|
||||
@@ -1463,6 +1471,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
- (void)onCancel:(id)sender
|
||||
{
|
||||
[self withdrawViewControllerAnimated:YES completion:nil];
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
|
||||
- (void)didSelectInvitableContact:(MXKContact*)contact
|
||||
|
||||
Reference in New Issue
Block a user