IBOutlet UIButton *myButton;
现在为其他按钮创建一个IBAction并将其连接到xib中:
-(IBAction)hideButton { myButton.hidden = YES; }
所以现在当你点击第二个按钮,它会隐藏myButton.