NoviceDeveloper
NoviceDeveloper

Reputation: 225

how to disable action method on a button click programmatically

I am developing a simple quiz game in which if a button is clicked then the player can have two chances to give answer. If first choice is right, then buttonClicked action will performed. If it is wrong then player can have second chance to give the answer. if it is correct, buttonClicked will performed otherwise game over.

please guide me how to perform this .. Any help will be highly appreciated..

Upvotes: 0

Views: 1418

Answers (1)

MarrLiss
MarrLiss

Reputation: 808

UIControll has property enabled.

If the enabled state is NO, the control ignores touch events ...

Upvotes: 3

Related Questions