简体   繁体   中英

Can I connect a button to a struct within a new swift file in xcode?

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

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM