Created
October 8, 2013 21:16
-
-
Save jerryhjones/6891853 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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