嗨 我有以下文件中的函数,我想叫它内同一类的其他方法的第二个调用一个函数在另一个
(无效)的touchesBegan:(NSSet中*)触及withEvent :(UIEvent *)event { // Issue vibrate AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
//同时发出视觉提醒 UIAlertView * alert = [[UIAlertView alloc] initWithTitle:@“Screen Touched!” message:nil 代表:无 cancelButtonTitle:无 otherButtonTitles:@“OK”,nil]; [alert show]; }
我想称之为内相同类的另一种方法,所述第二函数被调用,按钮按压,第二种方法是
- (IBAction为)resetBet:(ID)发送方 { //这里调用函数.... //部分代码...... } 基本上我正在做的是当按钮点击 请告诉我如何调用该函数。