2017-02-12 151 views

回答

1

,如果你只需要消失,你可以把它隱藏

yourButton.hidden = YES; 

yourButton.alpha = 0.0; 

,或者你可以像

[yourButton removeFromSuperview]; 
1

把所有的UIButton,UITextView的,的UITextField刪除,UIImageView在一個視圖中,並讓該視圖在您點擊Go按鈕時隱藏。這樣,您就不必多隱藏的語句給每個的UIButton,UITextView的,的UITextField,的UIImageView等

所以最終聲明將是

yourView.hidden = YES; 
相關問題