S spire.bt macrumors newbie Original poster Apr 8, 2010 22 0 Aug 26, 2010 #1 It might be a stupid question but I am a beginner so how can i do this Code: -(void)Method1{ . . . } -(void)Method2{ . . . empty value of a text field call Method 1 }
It might be a stupid question but I am a beginner so how can i do this Code: -(void)Method1{ . . . } -(void)Method2{ . . . empty value of a text field call Method 1 }
S spire.bt macrumors newbie Original poster Apr 8, 2010 22 0 Aug 26, 2010 #2 Dumb Question found it sorry guys Code: textFieldAnswer.text = [NSString stringWithFormat:@""]; [self Method1];
Dumb Question found it sorry guys Code: textFieldAnswer.text = [NSString stringWithFormat:@""]; [self Method1];
S Sykte macrumors regular Aug 26, 2010 223 0 Aug 26, 2010 #3 Messaging Don't think of it as calling a method as you would in other languages. In objective c you are sending a message to a receiver "object". So you will always need to have a receiver.
Messaging Don't think of it as calling a method as you would in other languages. In objective c you are sending a message to a receiver "object". So you will always need to have a receiver.