Skip to content

Instantly share code, notes, and snippets.

Steffen Sørensen SteffenSorensen

Block or report user

Report or block SteffenSorensen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
SteffenSorensen / gist:3944797
Created Oct 24, 2012
UICollectionViewCell glow outline on didSelect
View gist:3944797
UICollectionViewCell* collectionViewCell = [self.collectionView cellForItemAtIndexPath:indexPath];
collectionViewCell.layer.masksToBounds = NO;
collectionViewCell.layer.cornerRadius = 8; // rounded corners
CGColorRef redColor = [UIColor colorWithRed:1.0 green:0.0
blue:0.0 alpha:1.0].CGColor;
collectionViewCell.layer.shadowColor = redColor;
collectionViewCell.layer.shadowOffset = CGSizeMake(-15, 20);
collectionViewCell.layer.shadowRadius = 5;
collectionViewCell.layer.shadowOpacity = 0.5;
collectionViewCell.layer.shadowOffset = CGSizeMake(10,10);
You can’t perform that action at this time.