• Stars
    star
    199
  • Rank 196,105 (Top 4 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created almost 11 years ago
  • Updated over 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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