Adding Support Views

We provide you with a set of default help views that can easily be added to your app.  These views let you view, manage, and create tickets.

My Tickets

Your users can use the my tickets view to ask a new question, view current and resolved questions, and easily see chat messages from questions they have asked.  This is what it looks like:


To add this view, add a button to your app.  Hook your button up to a function in your view controller.  This view controller can either be pushed onto an existing navigation controller, or shown modally.  Both examples are below:

Objective C

Make sure to import R2MyTicketViewController.h in your view controller.

The following code will push onto your existing navigation controller:

R2MyTicketViewController *vc = [[R2MyTicketViewController alloc]init];
vc.tags = @[@"yellow", @"blue"];
[self.navigationController pushViewController:vc animated:YES];

The following code will pop the view up modally:

R2MyTicketViewController *vc = [[R2MyTicketViewController alloc]init];
vc.delegateModal = self;
vc.tags = @[@"yellow", @"blue"];
UINavigationController *nc = [[UINavigationController alloc] initWithRootViewController:vc];
[self presentViewController:nc animated:YES completion:nil];

When you present modally, we add an X icon to the view that will dismiss it.  To use this, add the R2ViewControllerDelegate delegate to your view controller, and include this function to dismiss the view:

- (void)didDismissR2ViewController{
    [self dismissViewControllerAnimated:YES completion:nil];


let myTicketVC = R2MyTicketViewController()
self.presentViewController(myTicketVC, animated: true, completion: nil)