In the Xcode swift, click Back.I want to create a return port by dragging it from the button to Exit.

Asked 2 years ago, Updated 2 years ago, 47 views

In the Xcode swift, click Back.I want to create a return port by dragging it from the button to Exit, but it won't connect.

The viewcontroller on the parent screen is

@IBAction func returnTop (segue:UIStoryboardSegue){}

The warning says use of undeclared type 'UIStoryboardSegue'.

I googled, but I'm too new to understand...(;)
I'm sorry to trouble you, but I appreciate your cooperation

swift

2022-09-30 21:14

1 Answers

Do you mean that you want to set the process of pushing the button you installed and returning to the previous screen on the Storyboard?

It seems to be a simple spelling mistake.Is it correct that it is UIStoryboardSegue?

·Before modification

@IBAction func returnTop (segue:UIStoryboardSegue){}

·Corrected

@IBAction func returnTop (segue:UIStoryboardSegue){}


2022-09-30 21:14

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.