프로그래밍/iOS
Static Class 만드는 방법
백룡화검
2011. 6. 2. 01:43
아이폰 개발시 Static Class 만드는 방법입니다.
@interface Foo : NSObject {
}
+ (NSObject*)classVariable;
@end
// Foo.m
#import "Foo.h"
@implementation Foo
+ (NSObject*)classVariable {
return classVariable;
}
@end
출처 : http://dongss.tistory.com/entry/StaticClass