// // MasterViewController.m // LinphoneTester // // Created by guillaume on 28/05/2014. // // #import "MasterViewController.h" #import "DetailViewController.h" #include "linphone/liblinphone_tester.h" @interface MasterViewController () { NSMutableArray *_objects; } @end @implementation MasterViewController - (void)awakeFromNib { if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) { self.clearsSelectionOnViewWillAppear = NO; self.preferredContentSize = CGSizeMake(320.0, 600.0); } [super awakeFromNib]; } - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. self.detailViewController = (DetailViewController *)[[self.splitViewController.viewControllers lastObject] topViewController]; const char* prefix = strdup([[[NSBundle mainBundle] bundlePath] UTF8String]); liblinphone_tester_init(); liblinphone_tester_set_fileprefix(prefix); NSLog(@"Bundle path: %s", liblinphone_tester_file_prefix); int count = liblinphone_tester_nb_test_suites(); _objects = [[NSMutableArray alloc] initWithCapacity:count]; for (int i=0; i