i created custom button using objective-c.when i click this button, next view will have to push.To do this i have written code as shown in below:
-(void)click1:(UIButton *)sender{
NSString * storyboardName = @"mystoryboard";
UIStoryboard* storyboard = [UIStoryboard storyboardWithName:storyboardName bundle:nil];
secondViewController *add = [[secondViewController alloc] initWithNibName:@"secondView" bundle:nil];
add =[storyboard instantiateViewControllerWithIdentifier:@"newseg1"];
[self presentViewController:add animated:YES completion:nil];
I got error like this:"could not find storyboardName in NSBundle...".i don't know what i have to put in storyboardName.can anyone explain it?