Add shadow to first top

This commit is contained in:
Mike Enriquez
2012-01-25 14:25:19 -05:00
parent e5f7188821
commit cda0120ada

View File

@@ -13,6 +13,13 @@
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
self.view.layer.shadowOffset = CGSizeZero;
self.view.layer.shadowOpacity = 0.75f;
self.view.layer.shadowRadius = 10.0f;
self.view.layer.shadowColor = [UIColor blackColor].CGColor;
self.view.clipsToBounds = NO;
[self.view addGestureRecognizer:self.slidingViewController.panGesture];
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Storyboard" bundle:nil];
self.slidingViewController.underRightViewController = [storyboard instantiateViewControllerWithIdentifier:@"UnderRight"];