我在 iCarousel 类的反射视图中有一个 UIProgressView 对象
当我尝试更新 ProgressView 时,它没有更新
使用委托方法更新进度视图即时消息
当图像的下载完成时,我会像这样调用委托方法
if([viewdelegate respondsToSelector:@selector(DidFinishprocess:tag:)])
{
[viewdelegate DidFinishprocess:value tag:bookid];
}
在另一边更新进度条即时执行此方法
-(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;
}
}
}
}
}
}