Closed tropicdome closed 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?
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.
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)
.
Seems to have fixed it after update and restart, pretty weird. Sorry for the inconvenience.
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?
Edit: Using Xcode 6.1, iOS 7.0 project.