на кнопку мыши, вы можете либо присутствует, либо нажать View Controller Если вы подключили его с Segue вы можете сделать что-то вроде:.
if(easySelected)
[self performSegueWithIdentifier:@"easyOne" sender:self];
else if
...
Если у вас есть контроллер навигации или вы хотите его представить:
UIStoryboard *story = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]];
EasyViewConroller *cont = [story instantiateInitialViewController];
// or EasyViewConroller *cont = [story instantiateViewControllerWithIdentifier:@"YourIdent"];
// in former solution you have to set that identifier in the code/storyboard
// navigation/push
self.navigationController pushViewController:cont animated:YES];
// if you want to present it
[self presentViewController:cont animated:YES completion:nil];
Edit:
if(easySelected){
self.performSegueWithIdentifier("easyOne" sender:self)
{
else if{
...
}
//If you have navigation controller or want to present it you can do:
var tempStory = UIStoryboard(name: "Main", bundle: NSBundle.mainBundle())
var tempVC = tempStory.instantiateInitialViewController() as! EasyViewController
//present
self.presentViewController(tempVC, animated: true)
//push
self.navigationController?.pushViewController(tempVC, animated: true)
Ник Catib спасибо, но вы можете показать его мне, используя быстрые –
Конечно, дайте мне 10 минут – Miknash
К сожалению, я не undersatnd, если вы дали мне две возможности или что ? –