UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

[Solved] Why the heck is IBOutlet stuck on IBAction?

Forums > iOS

So... like the title implies, for some reason when I drag a button or a text field into my class to use as an IBOutlet, it wont let me select an IBOutlet and only lets me use it as an IBAction. This doesn't happen in any of my other projects, what is going on?!

3      

I guess your class is not connected to the storyboard? Meaning if you are using this with view controller the storyboard view controller does not have custom class selected.

3      

Oh my goodness, that was my problem. Welp, I won't make that mistake again! Thanks :)

3      

TAKE YOUR SKILLS TO THE NEXT LEVEL If you like Hacking with Swift, you'll love Hacking with Swift+ – it's my premium service where you can learn advanced Swift and SwiftUI, functional programming, algorithms, and more. Plus it comes with stacks of benefits, including monthly live streams, downloadable projects, a 20% discount on all books, and free gifts!

Find out more

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.