Linux world
Linux world

Reputation: 3768

how to disable user interaction for a button

i have a play button in my view,if i press play its gets updated the stream and started playing.. until i get play song i dont want to take any user interactions on play button.. can any ony help me on this.....

Upvotes: 1

Views: 4140

Answers (2)

stitz
stitz

Reputation: 1429

You could also set the "Enabled" property to "NO" or if you want animation, fade the alpha out.

Upvotes: 0

Vladimir
Vladimir

Reputation: 170839

button.userInteractionEnabled = NO;

Upvotes: 10

Related Questions