Return to Snippet

Revision: 53523
at November 25, 2011 21:10 by neoline


Initial Code
@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

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

Initial Description
Accessing Method from other Classes Objective-C

Initial Title
Use function from another class

Initial Tags
c, iphone

Initial Language
Objective C