Skip to content

Commit

Permalink
Background setup
Browse files Browse the repository at this point in the history
  • Loading branch information
eelco committed Sep 19, 2011
1 parent adf71c4 commit 8523f40
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions TrafficLight/TrafficLightViewController.m
Expand Up @@ -29,8 +29,14 @@ - (void)viewDidLoad
{
[super viewDidLoad];

self.view.backgroundColor = [UIColor blackColor];

CALayer* backgroundLayer = [CALayer layer];
backgroundLayer.frame = CGRectInset(self.view.bounds, 100, 50);
backgroundLayer.backgroundColor = [[UIColor blackColor] CGColor];
backgroundLayer.borderColor = [[UIColor whiteColor] CGColor];
backgroundLayer.borderWidth = 25;
backgroundLayer.cornerRadius = backgroundLayer.frame.size.width / 2;

[self.view.layer addSublayer:backgroundLayer];

Expand Down

0 comments on commit 8523f40

Please sign in to comment.