Pinky
Pinky

Reputation: 1227

Storyboard segue usages

When a UIView is created using storyboard there are three methods available I would like to know more about: custom, push, and modal. Can someone please explain the purpose and usage of each? Thanks in advance.

Upvotes: 0

Views: 345

Answers (1)

Sunil Pandey
Sunil Pandey

Reputation: 7102

Modal:

when you will use style type mode the new screen completely obscures the previous one. The user cannot interact with the underlying screen until they close the modal screen first.

Push

When you use push screen is presented on the navigation stack you can always press the back button to return to the previous screen.

Custom:

In custom you can define your own segue class, where you can define your own way for transition between the screen

I have linked tutorial also in this answer. check it for more details

Upvotes: 1

Related Questions