ios - Progress bar with image -


i trying make progress bar 2 images. 1 of them grey , other picture green. when click button, want progress it, not working.

here code (progressgreen , progressgrey uiimageviews):

- (ibaction)nextbutton:(id)sender {   self.progressgreen.tag = rownumber; // giving number   [self progess]; }  -(void) progess {      cgrect rect = self.progressgrey.frame;   rect.size.width = (rect.size.width * (self.progressgreen.tag)) / questions.count;   self.progressgreen.frame = rect; } 

this screenshot.

what mistake?

use progressimage , trackimage properties on uiprogressview. easier doing manually.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -