objective-c - self == [APLEvent class]有意思吗?
天蓬老师
天蓬老师 2017-04-26 09:01:56
0
0
498
#import "APLEvent.h"
#import "APLPhoto.h"

#import "APLImageToDataTransformer.h"

@implementation APLEvent

@dynamic creationDate, latitude, longitude, thumbnail, photo;

+ (void)initialize {
    if (self == [APLEvent class]) {
        APLImageToDataTransformer *transformer = [[APLImageToDataTransformer alloc] init];
        [NSValueTransformer setValueTransformer:transformer forName:@"APLImageToDataTransformer"];
    }
}

@end
天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

membalas semua(0)
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan