I am trying to save image to the photos album from my app using the following code:
-(void)download:(UIButton *)downloadbtn{
j=320*downloadbtn.tag;
selectedIndex=downloadbtn.tag;
NSData *data=[NSData dataWithContentsOfURL:[NSURL URLWithString:[live_god_img objectAtIndex:selectedIndex]]];
UIImage*img=[UIImage imageWithData:data];
UIImageWriteToSavedPhotosAlbum(img, self, nil, nil);
UIAlertView*alert=[[UIAlertView alloc]initWithTitle:@"Success..!" message:@"Image Saved to the Photos" delegate:self cancelButtonTitle:@"Ok" otherButtonTitles:nil, nil];
[alert show];
}
When the image is saved to the photos album, an alert view will be shown, but I would like to show a progress view while image is being saved to the album. I do not know how to use UIProgressView
. How do I do it?