Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

spire.bt

macrumors newbie
Original poster
Apr 8, 2010
22
0
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     
}
 
Dumb Question found it sorry guys

Code:
textFieldAnswer.text = [NSString stringWithFormat:@""];
[self Method1];
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.