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

iphonejudy

macrumors 6502
Original poster
Sep 12, 2008
301
1
Hi,

I need to call the user defined method.But i got error,whats the syntax?


//declaration
-(void) news;

//definition
-(void) news
{
----------
---------

}

calling function

myclass:news;//got error

}
 

CocoaPuffs

macrumors 68020
Aug 23, 2008
2,005
3
Code:
[self oughtaReadABook];

- (void)oughtaReadABook {
  //pick up a damn book and read if you're stuck on the basic. 

}
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.