How to create a segue programmatically

Storyboard Segue Identifier


[self performSegueWithIdentifier:@"HomeToMyFavorites" sender:sender];

or Storyboard Identifier

MyFavoriteViewController *vc = (MyFavoriteViewController *)[self.storyboard instantiateViewControllerWithIdentifier:@"MyFavorites"];
[self.navigationController pushViewController:vc animated:YES];