/ Published in: Objective C

Accessing Method from other Classes Objective-C
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
@implementation commonClass - (void)CommonMethod:(id)sender { //So some awesome generic stuff... } @end @implementation ViewController2 - (void)do_something... { commonClass *c=[[commonClass alloc] init]; [c CommonMethod]; [c release]; } @end
URL: http://stackoverflow.com/q/1658471/907953
Comments
