iphone Programming Glossary: commonmethod
Accessing Method from other Classes Objective-C http://stackoverflow.com/questions/1658433/accessing-method-from-other-classes-objective-c a lot. Allow me to give you one. File ViewController1.m @implementation ViewController1 Do Some awesome stuff.... CALL CommonMethod HERE @end File ViewController2.m @implementation ViewController2 Do Some awesome stuff.... CALL CommonMethod HERE @end File.. CALL CommonMethod HERE @end File ViewController2.m @implementation ViewController2 Do Some awesome stuff.... CALL CommonMethod HERE @end File CommonClass @implementation commonClass void CommonMethod id sender So some awesome generic stuff... @end.. Do Some awesome stuff.... CALL CommonMethod HERE @end File CommonClass @implementation commonClass void CommonMethod id sender So some awesome generic stuff... @end I feel like I need to #import the other file make an Object from the class..
|