Home / IOS Development / Add a segment with identifier from an actionSheet / alertController action: iOSProgramming

Add a segment with identifier from an actionSheet / alertController action: iOSProgramming



Hi guys!

I’m working on a small project and need some help. The scenario is this: A plus button, when pressed, presents an action sheet with two options, and a cancel button. If the user selects option A (creates a maintenance log for a vehicle), the view should stand out as the correct view that correlates with option A. & option B should do the same (except navigate to a specification page, to add the factory a given vehicle).

Normally I would implement a segue by going into storyboards, dragging a segue from the view that the plus button is on, to the destination of that segue, and setting a segue identifier (used when preparing for the segue). But the problem I am running is that there is no way to pull a segment out of both options inside the action sheet!

Someone can help me!

Thank you very much in advance!

r / iOSProgramming - Add a segment with identifier from an actionSheet / alertController action

Source link