RCCPeakableImageView

by robertoseidenberg

robertoseidenberg / RCCPeakableImageView
203 Stars 19 Forks Last release: Not found MIT License 14 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

RCCPeakableImageView

Implementation of a "peekable" thumbnail image as shown at the Flag Kickstarter Project

 

Features

Automatically fills the image view with the image and adjusts "peeking" according to the image size. "Peeking" means: remaining potions of the image will be scrolled to the visible view area as you tilt your phone.

Build and run the sample app to see it in action.

Usage

    // Load image
    UIImage *image = [UIImage imageNamed:@"myImage.jpg"];

// Setup "peekable" image view
RCCPeakableImageView *view = [[RCCPeakableImageView alloc] initWithFrame:frame];
view.image = image;

// Optinally add somme default "peek" 
// this prevents the image from beeing static
// even if it fits perfectly inside the view bounds
view.padding = CGPointMake(20.0f, 20.0f);

Requirements

  • iOS 7.0
  • ARC

Acknowledgements

All images used in the sample app found at Unsplash

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.