浏览代码

Merge pull request #114 from sutar/patch-init

Yaoyuan 9 年之前
父节点
当前提交
0ae5e6c5d9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      YYModel/YYClassInfo.m

+ 1 - 1
YYModel/YYClassInfo.m

@@ -152,7 +152,7 @@ YYEncodingType YYEncodingGetType(const char *typeEncoding) {
 
 - (instancetype)initWithProperty:(objc_property_t)property {
     if (!property) return nil;
-    self = [self init];
+    self = [super init];
     _property = property;
     const char *name = property_getName(property);
     if (name) {