Skip to content

Instantly share code, notes, and snippets.

@jerryhjones
Created October 8, 2013 21:16
Show Gist options
  • Save jerryhjones/6891853 to your computer and use it in GitHub Desktop.
Save jerryhjones/6891853 to your computer and use it in GitHub Desktop.
- (void)flipButtonPressed:(id)sender
{
if (self.currentView == self.primaryView) {
self.cardBackView.showTellMeWhenSwitch = YES;
__block UIImage *image = self.eventCardView.eventImageView.image;
__weak GSEventStarCollectionViewCell *weakSelf = self;
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
image = [image applyMediumDarkEffectWithBlurRadius:10.0f];
dispatch_async(dispatch_get_main_queue(), ^{
weakSelf.cardBackView.imageView.image = image;
});
});
}
[self flipView];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment