We can get a view with a specific tag using viewWithTag method, like
[sampleView viewWithTag:1];
But how can we setTitle of a UIButton with specific tag??
From this answer here, it used the following code to set the alpha. But setTitle will not respond to viewWithTag right?
UIView* view = [theViewContainingThatButton viewWithTag:tag];
view.alpha = 0.5;
I even tried this question, but no luck!!
What else I can do here?
Thanx 🙂
1 Answer