UIViewImage click on the new UIViewController IN STORYBOARD

From questions like this and this , I know how to use push UIViewImage for the new UIViewController programmatically.

But how can I do this completely in the storyboard? I like Storyboard and I don't need to have multiple xib files.

I have already enabled User Interaction via Storyboard, but I still cannot create the transition ...

enter image description here

0
source share
1 answer
  • Drag the UIViewController object onto the storyboard canvas
  • Select this ViewController and in the top menu bar, click "Editor"> "Paste" in the "Navigation Controller".
  • Drag another UIViewController onto the storyboard
  • Control the drag from the first UIViewController to the new UIViewController and select push from the resulting options.
  • Click on the created Segue and go to the attribute inspector and enter the identifier for Segue.
  • In the ViewController code, where you handle the UIImageView crane, call [self performSegueWithIdentifier:@"YourSegueIdentifier" sender:self];
+1
source

Source: https://habr.com/ru/post/922495/


All Articles