Implementation of a "peekable" thumbnail image as shown at the Flag Kickstarter Project
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.
// 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);
All images used in the sample app found at Unsplash