NSDataAsset
2018-05-10 本文已影响1人
絮语时光杨
用来获取Assets.xcassets文件中的资源,资源必须是一下方法存储的才可以获取



初始化方法
- (instancetype)init
- (nullableinstancetype)initWithName:(NSString *)name;
- (nullableinstancetype)initWithName:(NSString *)name bundle:(NSBundle *)bundle
属性
@property (nonatomic, readonly, copy) NSString *name;
@property (nonatomic, readonly, copy) NSData *data;
@property(nonatomic,readonly,copy) NSString *typeIdentifier;
name参数就是文件qqData的名字。