SHOW ME THE MONEY
2013-10-29
How to declare private function in Objective-C
inside .m file, add @interface declaration
#import “MyClass.h”
@interface MyClass()
- (void) doMyPrivateFunction;
- (int) getMyMagicNumber;
@end
@implementation MyClass
…..
@end
so that the function will be private.
較新的文章
較舊的文章
首頁
訂閱:
文章 (Atom)