Explorar el Código

Merge pull request #77 from yimingtang/fix-convenience-initializer

Fix convenience creation methods
Yaoyuan hace 9 años
padre
commit
0f21725a96
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      YYCache/YYCache.m

+ 2 - 2
YYCache/YYCache.m

@@ -43,11 +43,11 @@
 }
 
 + (instancetype)cacheWithName:(NSString *)name {
-	return [[YYCache alloc] initWithName:name];
+    return [[self alloc] initWithName:name];
 }
 
 + (instancetype)cacheWithPath:(NSString *)path {
-    return [[YYCache alloc] initWithPath:path];
+    return [[self alloc] initWithPath:path];
 }
 
 - (BOOL)containsObjectForKey:(NSString *)key {