# Customize the waiting UI

<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

![Waiting Room](/img/1543957046808.png)

The waiting room shows up when a participant tries to join a meeting before
the host starts the meeting and the host does not allow "Join before
host".

You might want to decorate your waiting room and make your guest feel
comfortable. You can customize the waiting room UI once your app
receives the callback.

```objectivec
- (void)onJBHWaitingWithCmd:(JBHCmd)cmd
{

  switch (cmd) {
    case JBHCmd_Show: {
      // Get view controller.
      UIViewController *vc = [UIViewController new];

      // Change meeting title to be meeting number
      NSString *meetingID = [MobileRTCInviteHelper sharedInstance].meetingID;
      vc.title = meetingID;

      // Change leave button.
      UIBarButtonItem *leaveItem = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"Leave", @"")
      style:UIBarButtonItemStylePlain target:self ac- tion:@selector(onLeave:)];
      [vc.navigationItem setRightBarButtonItem:leaveItem];

      // Change modal present style.
      UINavigationController *nav = [[UINavigationController alloc] initWithRootViewCon- troller:vc];
      nav.modalPresentationStyle = UIModalPresentationFormSheet;
      [self presentViewController:nav animated:YES completion:NULL];
    }
    break;
    case JBHCmd_Hide:
    default:{
      // Hide waiting room UI.
      [self dismissViewControllerAnimated:YES completion:NULL];
    }
    break;
  }
}
```
