Skip to content

Commit

Permalink
Fixed double add of subview in demo app.
Browse files Browse the repository at this point in the history
  • Loading branch information
ocrickard committed Mar 31, 2012
1 parent e585e75 commit 00e1f01
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
Binary file not shown.
1 change: 0 additions & 1 deletion OCCalendar/OCCalendarViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ - (void)viewDidAppear:(BOOL)animated {

[self.view addSubview:[bgView autorelease]];

//insertPoint = CGPointMake(200+130*0.5, 200+10);
int width = 390;
int height = 300;

Expand Down
2 changes: 0 additions & 2 deletions OCCalendar/OCViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ - (void)viewDidAppear:(BOOL)animated {
//Here's where the magic happens
calVC = [[OCCalendarViewController alloc] initAtPoint:CGPointMake(150, 50) inView:self.view];
calVC.delegate = self;
[self.view addSubview:calVC.view];
}


Expand Down Expand Up @@ -124,7 +123,6 @@ - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceive

calVC = [[OCCalendarViewController alloc] initAtPoint:insertPoint inView:self.view];
calVC.delegate = self;
[self.view addSubview:calVC.view];

return YES;
}
Expand Down

0 comments on commit 00e1f01

Please sign in to comment.