markofjohnson / hjcache Goto Github PK
View Code? Open in Web Editor NEWiOS asynchronous download, sharing, and caching library for images and more
License: Other
iOS asynchronous download, sharing, and caching library for images and more
License: Other
I have downloaded the library and demo. It all works great, even when I used it on my own app. The problem that I am having is that in both the demo and my app that when the table is released which has row consisting of ImgCell type that there are various memory leaks on the device and not the simulator. When I run the demo and I go in and out of the Shared Image Demo the memory leaks continue to increase.
Please help as I would like to submit my app but the memory leaks could be a problem.
Many thanks in advance.
Is this a mistake? I think it should be 'UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight '
HJManagedImageV.m 135:
imageView.autoresizingMask = ( UIViewAutoresizingFlexibleWidth || UIViewAutoresizingFlexibleHeight );
Thanks for the tool!
i want to add a placeholder images during downloading and also in case if there is no any image at given url..any body help me please...
If a handler has a retain count of 1 and gets released after finishing a download (by being bumped from the buffer), it causes a crash when it tries to add itself to the memory buffer.
This would occur at line 355 in HJMOHandler.m.
I think this can be solved by bumping it from the download buffer after the object has been added to the memory buffer.
Hi, maybe someone could help. I want first load all images and just then load a view. How i could now when all images are loaded ?
-(id)addObject:(id)obj;
-(id)objectAtIndex:(int)i;
-(void)removeObject:(id)key;
-(void)removeObjectAtIndex:(int)i;
....
.
.
multiple methods named Error
I experienced that the loading wheel is shown not in the very center of the HJManagedImageV, but a little bit right and down from it. That looks very strange. However what's more strange is the solution that worked.
In HJManagedImageV:
-(void) showLoadingWheel {
[loadingWheel removeFromSuperview];
self.loadingWheel = [[[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray] autorelease];
// +
CGPoint point = CGPointMake(self.frame.size.width/2, self.frame.size.height/2);
loadingWheel.center = point;
// - loadingWheel.center = self.center;
loadingWheel.hidesWhenStopped=YES;
[self addSubview:loadingWheel];
[loadingWheel startAnimating];
}
This fixed the problem.
This issue occurred when I load a grid of (or multiple) hjimage views at the same time, I found that, sometimes some images can't load and its view was blank, Have you ever seen this issue with HJImageCache ? Could you tell me how to solve it ?
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.