Change certain values within method
- by Grant Wilkinson
I have the following code with a bool if statement inside and in another method I change the value of the bool and i know i need to recall the method [self someMethod]; but I just want to reflect the changes in the if statement and not recall everything else again, how do i do this? thanks
-(void)someMethod 
{  
  //start my code here
   if (boolvalueisTrue)    
      {
      //change this part only    
      }
}
-(void)changeBool {    
    boolvalueisTrue = TRUE;    
    [self someMethod];    
    //instead of calling the whole method i just want to reflect
    //the changes inside my if statement        
}