 |
 |
|
 |
07-04-2009, 11:28 AM
|
#1 (permalink)
|
|
New Member
Join Date: Jan 2009
Location: Minneapolis, MN
Posts: 5
|
Setting alpha = 0 on slider
I have a slider on which I would like to set its alpha to zero. This effectively makes it invisible. This works fine on a label in the viewDidLoad method.
On a slider it seems to have no effect (although setting the value does).
Any ideas?
|
|
|
07-04-2009, 11:38 AM
|
#2 (permalink)
|
|
Tutorial Author
Join Date: Jun 2009
Posts: 25
|
This works for me:
Code:
mySlider.hidden = YES;
A tip; if you intend to hide the slider and another view - such as the UILabel you described - it is easier to just drag a UIView in Interface Builder to your project and then add all those objects as subviews to that view. If you hide that one they will all hide. This works since they become subclassed to that specific UIView and thus inherit the given hidden property of their parent class.
Last edited by Bovn; 07-04-2009 at 11:40 AM.
|
|
|
07-04-2009, 11:50 AM
|
#3 (permalink)
|
|
New Member
Join Date: Jan 2009
Location: Minneapolis, MN
Posts: 5
|
Quote:
Originally Posted by Bovn
This works for me:
Code:
mySlider.hidden = YES;
|
This does work in the sense that the slider is hidden. The reason I was setting the alpha is so when the user touches a "find" button the slider (and a couple of other objects) gradually come into view. Works well except for the slider.
Note that when the find is done, the objects and slider have their alphas set back to zero, and that works fine. It's only when first showing the view that the problem occurs.
|
|
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» Advertisements |
» Online Users: 508 |
| 56 members and 452 guests |
| aoredsson, beausejour, bensj, BustinStones, chinhminhdo, CHV, codeMonkey, conanjb, CoolApps, Corey, CunningCat, dany88, dda, DorkyMohr, dre, ggalante, healthyutech, iPhoneDevelopment, Jeremy1026, john3478, jorgmart, JoshuaCaputo, katyaskr, KennyChong, kkrimmer, LoDani, LunarMoon, macoholic, Maximilian, mlo, MMan, Mr Jack, mriphoneman, MrMattMac, Nightmare_82, not_too_shabby, NSeven, opetopic, pablo.roqueta, pablox, pierotofy, rarindeed, Rudy, ryguy2503, seriessix, sgraves, stubbsjoe, supudo, Tambourin, themathminister, vcanic, virvalid, Vivek Nirkhe, warmi, wuf810, ZunePod |
| Most users ever online was 779, 05-11-2009 at 10:55 AM. |
» Stats |
Members: 21,495
Threads: 35,777
Posts: 156,730
Top Poster: smasher (2,448)
|
| Welcome to our newest member, AnuSambath |
|