diff --git a/YYCategories/YYCategoriesMacro.h b/YYCategories/YYCategoriesMacro.h index afa87e1..4e4eca5 100644 --- a/YYCategories/YYCategoriesMacro.h +++ b/YYCategories/YYCategoriesMacro.h @@ -117,7 +117,7 @@ YY_EXTERN_C_BEGIN objc_setAssociatedObject(self, _cmd, value, OBJC_ASSOCIATION_RETAIN); \ [self didChangeValueForKey:@#_getter_]; \ } \ -- (type)_getter_ { \ +- (_type_)_getter_ { \ _type_ cValue = { 0 }; \ NSValue *value = objc_getAssociatedObject(self, @selector(_setter_:)); \ [value getValue:&cValue]; \