Skip to content

Instantly share code, notes, and snippets.

@kleneway
kleneway / gist:6171239
Created August 7, 2013 04:44
Animated Shadow on UICollectionViewCell
/**
* Code to add an animated shadow to a UICollectionViewCell
*/
//
// HAIMainMenuCollectionViewCell.m
// app-haikudeck
//
// Created by Kevin Leneway
@kleneway
kleneway / gist:3709815
Created September 12, 2012 20:50
My implementation of FPPickerController didFinishPickingMediaWithInfo
-(void)FPPickerController:(FPPickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
// first check for image from camera roll or camera
UIImage *image = [info objectForKey:@"FPPickerControllerOriginalImage"];
// if not found, check to see if the image has been downloaded
if(!image) {
NSData *localData = [NSData dataWithContentsOfURL:[info objectForKey:@"FPPickerControllerReferenceURL"]];
if(localData) {
image = [UIImage imageWithData:localData];
}