I have created an app using storyboards. There are two view controllers first view or initial view is UnifeyeMobileViewController and the second view controller is called the SecondViewController. Both are connected through segue inside a navigation view controller. The SecondViewController has two buttons. On the IBAction of the first button inside secondViewController I am trying to run the below code.
I am trying to make use of the below code from the already existing app in previous version of xcode where we use to use XIB instead of storyboards but the below code does not work with storyboard it generates error msg in presentModelViewController statement.
UnifeyeMobileHelloWorld* unifeyeMobileViewController = [[UnifeyeMobileHelloWorld alloc] initWithNibName:@"UnifeyeMobileViewController" bundle:nil];
unifeyeMobileViewController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[viewController presentModalViewController:unifeyeMobileViewController animated:YES];
[unifeyeMobileViewController release];
UnifeyeMobileHelloWorld is the viewcontroller that i am programmatically generating here. Imported UIController class from file->new->file->objective C class subclass of UIViewController.Named this file as UnifeyeMobileHelloWorld.And added the functionality in the implementation file.