Skip to content

Instantly share code, notes, and snippets.

@andkon
Created June 16, 2014 23:49
Show Gist options
  • Save andkon/305a12db88ff80d9e24e to your computer and use it in GitHub Desktop.
Save andkon/305a12db88ff80d9e24e to your computer and use it in GitHub Desktop.
Making a view behind iOS 7 status bar
- (void)viewDidLoad
{
CGRect rect = CGRectMake(0, 0, self.view.frame.size.width, 20);
UIView *statusBarBg = [[UIView alloc] initWithFrame:rect];
[self.view addSubview:statusBarBg];
statusBarBg.backgroundColor = [UIColor purpleColor];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment