I really have no idea how this is done, it should be simple but i just cant get it
i have an IBAction and void and want to do this:
i have an IBAction and void and want to do this:
Code:
-(IBAction)pass{
int VariableX = 10;
[B][self getVar]; ---> send var to -(void)getVar[/B]
}
-(void)getVar{
[B]get the VariableX[/B]
if(VariableX=10){
do something
}
}