-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Shimmer on a UIButton #8
Comments
You should be able to use Shimmer with a button, but it might not work if you try and use it with one part of a button. In this case, trying to pull out the Instead, you could try using the button itself as the content of the shimmering view:
That way, the button's title can stay within the button itself. Let me know if that helps! |
Hey, now I found a good looking solution for me. I added a
Cheers |
I good similar problems. In my subclassed UIButton I added this code. The button starts to shimmer as expected but it stops reacting to touches.
|
เมื่อ 21 เม.ย. 2014 13:33 "Dennis Oberhoff" notifications@github.com
|
@DocterD I think it's likely that your shimmering view is covering up taps on the button. Maybe set |
I think I already tried this. Afaik userInteractionEnabled applies to all subviews. |
Right, you'd disable interaction on the shimmering view so touches can fall through to the button. If you're still having issues, I would avoid shimmering internal subviews of UIButton. Instead, try shimmering the entire button as the |
เมื่อ 21 เม.ย. 2014 23:23 "Now at @grp" notifications@github.com เขียนว่า:
|
เมื่อ 21 เม.ย. 2014 23:21 "Dennis Oberhoff" notifications@github.com
|
if someone has still trouble here my code
|
eikebartels, it's great. |
Hey,
it is possible to set the Shimmer on a UIButton? I tried it already and it is not working. How can I modifier the lib for this feature?
ps: thanks for this awesome lib!!
I added the button via storyboard (weak, nonatomic)
The text was updated successfully, but these errors were encountered: