Developer
Developer

Reputation: 4321

Handling Button states

Hello I have another problem/question. I have a custom control with a button on it:

enter image description here

I want to delete an image from it, so I removed the reference from Attributes inspector -> Image, so now my button in designer looks like this:

enter image description here

But when I launch it on simulator, when I press the button (just push it, not making a click ) the image shows up! Where does it come from? Are there any button states styles in project files, where this could be written?

Because button has two references - 1 outlet and 1 action and none of those are used to add image to the button! I just don't understand where from the image gets in...

Upvotes: 0

Views: 81

Answers (1)

Suhail kalathil
Suhail kalathil

Reputation: 2693

You should remove the image for both normal and selected states of the button from the attribute inspector(check stateConfig attribute).

Upvotes: 5

Related Questions