How can I prepare segue on button click from presentviewcontroller using XIB objective-c? I am trying billow given code but it not working.
PushViewController *puvc=[[PushViewController alloc]initWithNibName:@"PushViewController" bundle:nil];
UINavigationController *nvc = [[UINavigationController alloc] initWithRootViewController:puvc];
[self.navigationController pushViewController:nvc animated:YES];
YOUR_SEGUE_NAME_HERE is identifier of segue you set in XIB file. This helped me. Hope it helps.
Use this code