Code Monkey home page Code Monkey logo

hjcache's People

Contributors

markofjohnson avatar typester avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hjcache's Issues

Memory leak in Demo running on device

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.

Handler gets released too early after finishing download

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.

multiple methods named Error

-(id)addObject:(id)obj;
-(id)objectAtIndex:(int)i;
-(void)removeObject:(id)key;
-(void)removeObjectAtIndex:(int)i;
....
.
.

multiple methods named Error

Some HJImageViews were blank and can't load

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 ?

Add placeholder images

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...

Loading wheel appearing not in the center.

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.

A mistake when setting autoresizingMask

Is this a mistake? I think it should be 'UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight '
HJManagedImageV.m 135:
imageView.autoresizingMask = ( UIViewAutoresizingFlexibleWidth || UIViewAutoresizingFlexibleHeight );

Thanks for the tool!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.