iphone - How can i create slider in UIViewController -
how can make controller1
slide , down creating slider
in it
-(void)actionsheet:(uiactionsheet *)actionsheet clickedbuttonatindex:(nsinteger)buttonindex { switch (buttonindex) { case 0:{ //devanagari view display buttonviewcontroller *controller1 = [[buttonviewcontroller alloc]init]; controller1.delegate = self; uinavigationcontroller *navigationcontroller = [[uinavigationcontroller alloc] initwithrootviewcontroller:controller1]; navigationcontroller.navigationbar.tintcolor = [uicolor colorwithhue:2.0/12 saturation:2.0 brightness:4.0/10 alpha:1.0]; [self presentmodalviewcontroller:navigationcontroller animated:yes]; [navigationcontroller release]; break; }
i got user experience coding how-to's apple reference
creating slider
cgrect frame = cgrectmake(0.0, 0.0, 200.0, 10.0); uislider *slider = [[uislider alloc] initwithframe:frame]; [slider addtarget:self action:@selector(slideraction:) forcontrolevents:uicontroleventvaluechanged]; [slider setbackgroundcolor:[uicolor clearcolor]]; slider.minimumvalue = 0.0; slider.maximumvalue = 50.0; slider.continuous = yes; slider.value = 25.0;
i added whole thing right below uitext view
in controller1
controller1
not sliding , down.
appreciate help.
from can tell trying do, think should using uiscrollview , taking control of contentoffset property. threw quick example app, trying do.
Comments
Post a Comment