嗨 我有以下文件中的函數,我想叫它內同一類的其他方法的第二個調用一個函數在另一個
(無效)的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)發送方 { //這裏調用函數.... //部分代碼...... } 基本上我正在做的是當按鈕點擊 請告訴我如何調用該函數。