我在.h中創建了三個IBOutlet
s,但是當我進入Interface Builder並轉到引用出口或右鍵單擊我想連接到其中一個出口的對象時。它只是不顯示我製作的插座。我如何找到IB並將這些圖像連接到這些圖像。我的目標是製作自定義按鈕,我在IB中擁有圖像並設置了突出顯示的狀態。我希望觸發touchupInside時,圖像自動切換到突出顯示的狀態。IBOutlets not shown
#import <UIKit/UIKit.h>
@interface FirstViewController : UIViewController {
IBOutlet UIButton *brown
IBOutlet UIButton *red
IBOutlet UIButton *blue
}
-(void)brownPressed
-(void)redPressed
-(void)bluePressed
@end
雖然沒有在問題中提到,OP可能會希望那些'空格'作爲'IBActions'。 – 2011-04-25 23:43:35