objective c - Closing a UIpicker in an iphone app -


i'm new iphone dev. app i'm making uses picker input value user. have managed make picker hidden until user hits button. used mypicker.alpha = 0; in viewdidload the picker invisible when program starts. when user hits start button executes code mypicker.alpha=1;. want picker close after user chooses value. how do that? have hints or tutorials ? looked @ few confusing! how make picker appear bottom ? (like keyboard !)

one method started using put shade button behind picker, large transparent black button size of screen, color black alpha=0.3 ([uicolor colorwithwhite:0 alpha:0.3f] think was). puts transparent "shade" on rest of screen except picker, similar how looks when use uialertview. hook button sends resignfirstresponder picker. when user done picking, tap anywhere outside picker in shaded area, , button resigns picker, , picker can slid down , button faded out animation.

the picker slide up/down animation can done , have code @ home don't have access right now. can make appear keyboard , send same notifications keyboard sends.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -