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
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){}
© 2024 OneMinuteCode. All rights reserved.