I'm trying to have a modal view controller that i call programmatically.
heres my code:
i get a sigbart error, is it because the view controller I'm calling is a navigation controller?
i also have a similar method in my "ViewWillAppear" for my log in screen.
heres my code:
Code:
- (IBAction)searchView:(id)sender
{
GlobalStrings* theDataObject = [self theGlobalClass];
if (theDataObject.presentSearch == nil)
{
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
UIViewController *vc = [storyboard instantiateViewControllerWithIdentifier:@"SearchBarViewController"];
[vc setModalPresentationStyle:UIModalPresentationFullScreen];
[self presentModalViewController:vc animated:YES];
}
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
UIViewController *vc = [storyboard instantiateViewControllerWithIdentifier:@"SearchBarViewController"];
[vc setModalPresentationStyle:UIModalPresentationFullScreen];
}
i get a sigbart error, is it because the view controller I'm calling is a navigation controller?
i also have a similar method in my "ViewWillAppear" for my log in screen.