我在.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