Say if i have a method as follows;
- (void)carpentorLoad {
NSlog(@"HI... Hello");
}
Now, i need to call this method from another method, say - (int) CallingMethod
-(int) CallingMethod{
// Here, i need to call carpentorLoad Method
return 0;
}
How should i call carpentorLoad from CallingMethod do this?
Are these methods in the same class? If so you can just do:
If they are in different classes, then you’ll need to pass a reference to the second class into your calling method, like: