Skip to content

Instantly share code, notes, and snippets.

View maxkramer's full-sized avatar

Max Kramer maxkramer

View GitHub Profile
@maxkramer
maxkramer / transparentModalViewController.m
Created May 23, 2012 06:58 — forked from frr149/transparentModalViewController.m
How to create a transparent modal View Controller
#pragma mark - Transparent Modal View
-(void) presentTransparentModalViewController: (UIViewController *) aViewController
animated: (BOOL) isAnimated
withAlpha: (CGFloat) anAlpha{
self.transparentModalViewController = aViewController;
UIView *view = aViewController.view;
view.opaque = NO;
view.alpha = anAlpha;