How to configure UIButton to be selected / highlighted before meeting the condition?

How can i do this? I want my UIButton to remain selected until a certain condition is met

+3
source share
1 answer

In IBAction set

[UIButton  setSelected:YES] 

And check it with isSelected:YES

Change if necessary setSelected:NO

0
source

Source: https://habr.com/ru/post/1711715/


All Articles