Giter VIP home page Giter VIP logo

afimagedownloader's Introduction

AFImageDownloader

A simple image downloader for iOS. Still working on completing it. It's a personal side project and challenge I'm working on: can I develop a small library that will fetch and decompress JPEGs efficiently completely using Behaviour-Driven Development with Kiwi? I didn't let the app touch the Internet until it was completely done. The first time I ran it, it worked.

Downloads JPEG images asynchronously and decompresses them on a background thread.

Usage

Import the following four files into your project. #import the AFImageDownloader.h file and you're good to go!

  • AFImageDownloader.h
  • AFImageDownloader.m
  • NSData+AFDecompression.h
  • NSData+AFDecompression.m

Usage is pretty simple:

[AFImageDownloader imageDownloaderWithURLString:@"http://static.ashfurrow.com.s3.amazonaws.com/github/worked.jpg" autoStart:YES completion:^(UIImage *decompressedImage) {
    self.imageView.image = decompressedImage;
}];

It's a "fire and forget" class, so you don't need to worry about retaining a strong reference to it. It will deallocate its own memory when its completed or cancelled.

Testing

Make sure to do a recursive checkout to get the Kiwi testing frameworking.

git checkout --recursive git://github.com/AshFurrow/AFImageDownloader.git

afimagedownloader's People

Contributors

ashfurrow avatar brendanlynch 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

afimagedownloader's Issues

Kiwi 1.1.1 crashes in iOS 7

Please update your pod Kiwi reference to 2.0 or up. Since SenTestingKit is being deprecated now it makes apps to crash in iOS 7, avoiding apps that use AFImageDownloader to be submitted to iTunes Connect.

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.