almost 11 years ago
Show activity Indicator before image loads using SDWebImage SDK.
UIView *myView; UIImageView *imgView; UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray]; [indicator startAnimating]; [indicator setCenter:imgView.center]; [imgView addSubview:indicator]; NSString *imgURLStr = [[arrOfImages valueForKey:@"image"] objectAtIndex:i]; [imgView setImageWithURL:[NSURL URLWithString:imgURLStr] placeholderImage:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType) { [indicator removeFromSuperview]; }]; [myView addSubview:imgView];
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Comment(s)