This tutorial describes how to create a new application using storyboards by using the CJGuestCallViewController. This high-level SDK object is useful for demo purposes.
The requirements for the SDK can be found in the Developer Guide.
The following steps show how to piece together the application.
Create a new project in Xcode and use the Single View Application template.
The installation instructions for the SDK can be found in the Developer Guide.
#import "YourViewController.h"
#import <JabberGuest/JabberGuest.h>
@interface YourViewController () <CJGuestCallViewControllerDelegate>
@end
@implementation YourViewController
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if ([[segue identifier] isEqualToString:@"StartJabberGuest"]) {
CJGuestCallViewController * jabberGuest = [segue destinationViewController];
jabberGuest.serverName = @"your.server.name";
jabberGuest.toURI = @"your.uri";
jabberGuest.delegate = self;
}
}
- (void)callFinishedForCallController:(CJGuestCallViewController *)callController
{
callController.navigationController.navigationBarHidden = NO;
[callController.navigationController popViewControllerAnimated:YES];
}
@end
Build and run the application on your iOS device. You should be able to play a video call to the URI you set in the prepareForSegue: sender:
method.