-(void)btnclick1:(UIButton *)sender
{
NSString *storyboardName=@"Main";
UIStoryboard* storyboard1 = [UIStoryboard storyboardWithName:storyboardName
bundle:nil];
secondViewController *add = [[secondViewController alloc]init];
add =[storyboard1 instantiateViewControllerWithIdentifier:@"nextseg"];
[self.view addSubview:add.view];
[self presentViewController:add
animated:YES
completion:nil];
}
I got error: reason: 'Storyboard () doesn't contain a view controller with identifier 'nextseg''