iOS 类型编码(Type Encodings)
2018-02-07 本文已影响63人
linbj
char *buf = @encode(NSObject *);
NSLog(@"encode: %s ", buf);
buf = @encode(float);
NSLog(@"encode: %s ", buf);
buf = @encode(NSString *);
NSLog(@"encode: %s ", buf);
buf = @encode(NSString *[4]);
NSLog(@"encode: %s ", buf);
buf = @encode(NSArray *);
NSLog(@"encode: %s ", buf);
buf = @encode(ICETestExample);
NSLog(@"encode: %s ", buf);
tesssss[1645:548704] encode: @
tesssss[1645:548704] encode: f
tesssss[1645:548704] encode: @
tesssss[1645:548704] encode: [4@]
tesssss[1645:548704] encode: @
tesssss[1645:548704] encode: {?=^idi}
image.png