Rachit Singhal
Rachit Singhal

Reputation: 67

to call a function in other one

Hi I have following function in a file i want to call it inside another method of same class the second

i want to call it inside another method of same class the second function is called with the button press the second method is

-(IBAction)resetBet:(id)sender { //call function here.... //some code...... } Basically what i am tring to do is to make device vibrate when button click please tell me how to call the function.

Upvotes: 0

Views: 228

Answers (2)

Alec Sloman
Alec Sloman

Reputation: 699

Do what stackr said :D or use a selector.

Upvotes: 0

stackr
stackr

Reputation: 2742

[self resetBet:nil];

should call the resetBet method.. or you can use an object like a button instead of the "nil". Hope that's what you meant..

Upvotes: 0

Related Questions