rounak / rjimageloader Goto Github PK
View Code? Open in Web Editor NEWA recreation of the image loader animation created by Michael Villar for iOS
License: MIT License
A recreation of the image loader animation created by Michael Villar for iOS
License: MIT License
After the reveal animation is done, there is a quick flicker. Is there a way to remove this flicker?
How load custom image from my local rep. with animation
pod try RJImageLoader
opens broken project.I made a small video: http://cl.ly/1y0G1p050o0M. I think the problem is in SDWebImage:
self.photoImageView.image = nil;
[self.photoImageView startLoaderWithTintColor:[UIColor blueColor]];
NSLog(@"Start loader");
__weak typeof(self) weakSelf = self;
[self.photoImageView sd_setImageWithURL:url
placeholderImage:nil
options:SDWebImageRetryFailed | SDWebImageRefreshCached
progress:^(NSInteger receivedSize, NSInteger expectedSize) {
dispatch_async(dispatch_get_main_queue(), ^{
CGFloat percent = (CGFloat)receivedSize / expectedSize;
[weakSelf.photoImageView updateImageDownloadProgress:percent];
NSLog(@"Update progress = %f", percent);
});
}
completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
[weakSelf.photoImageView reveal];
NSLog(@"Reveal loader");
}];
I posted couple of issues in SDWebImage related to this problem. SDWebImage/SDWebImage#1090
Since SDWebImage is a wreck, we can avoid completion handler and run all animations in progress block:
self.photoImageView.image = nil;
[self.photoImageView startLoaderWithTintColor:[UIColor blueColor]];
NSLog(@"Start loader");
__weak typeof(self) weakSelf = self;
[self.photoImageView sd_setImageWithURL:url
placeholderImage:nil
options:SDWebImageRetryFailed | SDWebImageRefreshCached
progress:^(NSInteger receivedSize, NSInteger expectedSize) {
dispatch_async(dispatch_get_main_queue(), ^{
CGFloat percent = (CGFloat)receivedSize / expectedSize;
[weakSelf.photoImageView updateImageDownloadProgress:percent];
NSLog(@"Update progress = %f", percent);
if(receivedSize == expectedSize) {
[weakSelf.photoImageView reveal];
}
});
}
completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
}];
But then it's all broken after I run it twice, see video: http://cl.ly/2U192i321D1N
Hi I am working with the RJImage Loader using podfile.working fine. I am using in Tableview Cell for image loading but when i scroll then every time it is showing loader and tableview not moving smoothly
below code i am using in cellForRowAtIndexPath
_imageview =cell.mediaImageView;
[_imageview startLoaderWithTintColor:[UIColor redColor]];
// [self indicatore];
__weak typeof(self)weakSelf = self;
urlString = messageString;
[weakSelf.imageview sd_setImageWithURL:[NSURL URLWithString:urlString] placeholderImage:nil options:SDWebImageRetryFailed | SDWebImageRefreshCached progress:^(NSInteger receivedSize, NSInteger expectedSize) {
[weakSelf.imageview updateImageDownloadProgress:(CGFloat)receivedSize/expectedSize];
} completed:^(UIImage image, NSError error, SDImageCacheType cacheType, NSURL *imageURL) {
[weakSelf.imageview reveal];
}];
where i am missing please help me
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.