I have a UIProgressView object in reflection view of iCarousel class
When i m trying to update the ProgressView its not updating
For updating of progress view i m using delegate method
When the download completes for an image i m calling the delegate method like this
if([viewdelegate respondsToSelector:@selector(DidFinishprocess:tag:)])
{
[viewdelegate DidFinishprocess:value tag:bookid];
}
and on another side to update the progress bar i m implementing this method
-(void)DidFinishprocess:(float)progress tag:(int)bookid
{
NSArray *arr = carousel.visibleItemViews; //carousel.visibleItemViews;
for (UIView *vi in arr)
{
if ([vi isKindOfClass:[ReflectionView class]])
{
if (vi.tag == bookid)
{
for (UIProgressView *v in vi.subviews)
{
if ([v isKindOfClass:[UIProgressView class]])
{
progressView = (UIProgressView*)v;
[progressView setProgress:progress animated:YES];
NSLog(@"%f",progress);
//Here i m getting the new value of progress bar but the progress view doesn't how the update
progressView=nil;
break;
}
}
}
}
}
}