Posted By

neoline on 11/25/11


Tagged

c iphone objective


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

Tintenklecks
cnathan


Use function from another class


 / Published in: Objective C
 

URL: http://stackoverflow.com/q/1658471/907953

Accessing Method from other Classes Objective-C

  1. @implementation commonClass
  2. - (void)CommonMethod:(id)sender
  3. {
  4. //So some awesome generic stuff...
  5. }
  6. @end
  7.  
  8. @implementation ViewController2
  9.  
  10. - (void)do_something... {
  11. commonClass *c=[[commonClass alloc] init];
  12. [c CommonMethod];
  13. [c release];
  14. }
  15.  
  16. @end

Report this snippet  

You need to login to post a comment.