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

Missing UIColor *shadowColor in .h #29

Closed tropicdome closed 9 years ago

tropicdome commented 9 years ago

I tried out THLabel because I needed a good way to handle shadows on labels. Apparently it was not working for me until I added UIColor *shadowColor to .h. Have you noticed this?

@property (nonatomic, strong) IBInspectable UIColor *shadowColor;

Edit: Using Xcode 6.1, iOS 7.0 project.

tobihagemann commented 9 years ago

shadowColor is already a property of UILabel so that you shouldn't have to add this to .h. So I'm curious why this worked in your case, hm. Where did this not work? In the app itself after running or in Interface Builder of Xcode?

tropicdome commented 9 years ago

In both the app and Xcode. I will just try and update to 6.1.1 and give it a restart to see if it is a bug on my side. Thanks for the prompt reply.

tobihagemann commented 9 years ago

If you're still having this issue, you can send me a minimal example project to tobias.hagemann@gmail.com and I'll look into it! But you might want to look into the example project I've provided, maybe that helps. The only thing that I can think of is that you have to set shadowColor explicitly to something other than [UIColor clearColor]. And of course shadowOffset must be set other than CGSizeZero, but that should already be default to CGSizeMake(0, -1).

tropicdome commented 9 years ago

Seems to have fixed it after update and restart, pretty weird. Sorry for the inconvenience.