I am having some trouble with the UIButton.
This is my code:

I am not using the Interface Builder and I am a new programmer.
What I want is that when the button is selected the title changes and the button’s transparency changes from half visible to fully visible.
Thanks in advance, -Marnix
The problem is that the
ifstatement is just executed once, when you’re creating the button. InsideMyCode2, add this line:Every time that the button’s pressed, the
buttonActionmethod will be executed, so:You have to declare this IBAction in your
.hand add this method in your.mfile.