Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode: Sent Events Disappear upon changing UIButton class to custom class

I have created a custom UIButton class:

class MyButton: UIButton {
}

Then I added a UIButton to my storyboard and changed its class to MyButton.

Now when I right-click-drag the button to code, I am able to add Outlet but not Action. "Sent Events" section also disappears in property inspector. What could I be missing?

like image 398
Kashif Avatar asked Sep 29 '22 11:09

Kashif


1 Answers

The only trick I've discovered until now is to change the button class back to UIButton, add the requested actions and then change back the class to MyButton :/ The bug is still there.

like image 92
Kappe Avatar answered Oct 03 '22 01:10

Kappe