I want to add a UIButton function to a struct within a supplementary swift file in xcode, but whenever I hold the command button and drag the button to the swift code, nothing appears. I'm very new to xcode so any help explaining how I may deal with this would be greatly appreciated.
Do i have to declare a class first or something?
Thank you
You need to start with a class that inherits from UIViewController.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.