0
내부에 bool if 문을 사용하는 다음 코드가 있습니다. 다른 메서드에서 bool 값을 변경하고 메서드가 [self someMethod];
인데 리콜해야합니다. if 문 및 다른 모든 것을 다시 호출하지 않으면 어떻게해야합니까? 덕분에메서드 내에서 특정 값 변경
-(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
}