2011-04-29 80 views

回答

21

創建一個出口的按鈕隱藏和它在你的廈門國際銀行連接:

IBOutlet UIButton *myButton; 

現在的其他按鈕創建一個IBAction並在xib中連接它:

-(IBAction)hideButton 
{ 
    myButton.hidden = YES; 
} 

所以現在當你點擊seco nd按鈕,它會隱藏myButton

0

在你的其他按鈕的輕擊動作做到這一點:

yourButton.hidden = YES; 
3

在你IBAction爲按鈕兩次:

[*yourbutton* setHidden:YES]; 
1
[self.btnReport setHidden:YES]; 
0
-(IBAction)hideButton 
{ 
     yourbutton.hidden = YES; 
} 

應該這樣做。

相關問題