tobihagemann / THLabel

UILabel subclass, which additionally allows shadow blur, inner shadow, stroke text and fill gradient.
https://tobiha.de
Other
665 stars 111 forks source link

Use CF convention for methods returning retained unmanaged objects #24

Closed pronebird closed 9 years ago

pronebird commented 9 years ago

Static analyzer panics when retained non-managed objects returned from methods that do not follow CF naming convention (e.g. all methods that return retained object must start with "new" keyword in their name).

While I do not want to rename methods, I simply use CF_RETURNS_RETAINED attribute to achieve the same effect.

Thanks for the great label subclass, I use it for many years in my apps.

This is a part of issue #22.

tobihagemann commented 9 years ago

Thanks again! :)