Преглед изворни кода

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) {