我們可以得到使用viewWithTag方法的特定標籤的觀點,像如何使用特定標籤設置UIButton的標題?
[sampleView viewWithTag:1];
但是如何才能一的setTitle的UIButton的特定標籤?
從this answer here,它使用下面的代碼來設置alpha。但setTitle不會響應viewWithTag對不對?
UIView* view = [theViewContainingThatButton viewWithTag:tag];
view.alpha = 0.5;
我甚至嘗試this question,但沒有運氣!
我還能在這裏做什麼?
感謝名單:)
感謝名單:)但是「ThatButton迴應'在'ContainingThatButton'和'aButton'中是不同的。我想要的是設置'ThatButton'的標題。我試過了,ThatButton = aButton;但沒有奏效。任何想法! –