dzenbot / DZNSegmentedControl

A drop-in replacement for UISegmentedControl for showing counts, to be used typically on a user profile

Home Page:https://www.cocoacontrols.com/controls/dznsegmentedcontrol

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Having issues adjusting the alpha property.

JinkProject opened this issue · comments

I'm implementing animation in my app and the segmented control needs to fade in/out, but for some strange reason I can't alter the alpha property.

Alt Text

Looks like the link didn't go through: http://i.giphy.com/xTiTnsALbsvYhvBcQg.gif

alpha property belong to UIView, and DZNSegmentedControl is a UIControl subclass, so it should work correctly.
Just tried in the sample project, and it does work.

image

You must be doing something wrong...

You are correct, hence why I am confused. I tried tinkering around with it, but I'm still getting the same result leaving me completely baffled. I am logging out the value that I'm setting the alpha property to to see if it's even changing and it is. No idea what the issue could be.
screen shot 2015-03-10 at 7 59 42 pm

Temporary fix for this: Just going to place it in a container view and animate the alpha property of the container view instead.