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

EXC Bad Access on CTFrameSetter #38

Closed AmbroiseCollon closed 8 years ago

AmbroiseCollon commented 8 years ago

I installed latest version via cocoa pods. I target iOS 9.0 and higher.

This lines throws a EXC_BAD_ACCES error : CTFramesetterRef framesetterRef = CTFramesetterCreateWithAttributedString(attributedStringRef);

Any idea why ?

tobihagemann commented 8 years ago

Is there any way to reproduce this error in a minimal project? Have you tried the example project of THLabel? It's hard to say why this error occurs without being able to debug.

AmbroiseCollon commented 8 years ago

I think it's linked to IBDesignable and me overriding didSet on the text variable in a THLabel subclass. When I removed both, it worked.

tobihagemann commented 8 years ago

Alright! I'll close this for now. Feel free to re-open, if you think it's an actual bug with THLabel that needs to be fixed. :)