Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save AppleBetas/4ddf91c8ead4b2a87a71bcd52eab258b to your computer and use it in GitHub Desktop.
Save AppleBetas/4ddf91c8ead4b2a87a71bcd52eab258b to your computer and use it in GitHub Desktop.
Non-opaque application windows in iOS 7, with optional blur. Shows the user's wallpaper under the app, with Parallax if supported.
typedef NS_ENUM(NSUInteger, UIBackgroundStyle) {
UIBackgroundStyleDefault,
UIBackgroundStyleTransparent,
UIBackgroundStyleLightBlur,
UIBackgroundStyleDarkBlur,
UIBackgroundStyleDarkTranslucent,
UIBackgroundStyleExtraDarkBlur,
UIBackgroundStyleBlur
};
@interface UIApplication (UIBackgroundStyle)
-(void)_setBackgroundStyle:(UIBackgroundStyle)style;
@end
[application _setBackgroundStyle:UIBackgroundStyleDarkBlur];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment