iphone - Set delay animation for UIPicker? -


if have code below tell uipicker if nothing selected set feet 1, how can delay action few seconds?

// if feet values zero. if (([feetpicker selectedrowincomponent:0] == 0 & [feetpicker selectedrowincomponent:1] == 0)){ // set 1 foot. [feetpicker selectrow:1           incomponent:1              animated:yes];   } 

[nstimer    scheduledtimerwithtimeinterval:2.0    target:self    selector:@selector(firemethod)    userinfo:nil repeats:no]; 

the above code can placed whenever want start timer.

-(void)firemethod {     // if feet values zero. if (([feetpicker selectedrowincomponent:0] == 0 & [feetpicker selectedrowincomponent:1] == 0)){ // set 1 foot. [feetpicker selectrow:1           incomponent:1              animated:yes];       } } 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -