From cda0120ada79b7c57168b102acb9f646eb09afd2 Mon Sep 17 00:00:00 2001 From: Mike Enriquez Date: Wed, 25 Jan 2012 14:25:19 -0500 Subject: [PATCH] Add shadow to first top --- ECSlidingViewController/FirstTopViewController.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ECSlidingViewController/FirstTopViewController.m b/ECSlidingViewController/FirstTopViewController.m index c5698b0..4eaa645 100644 --- a/ECSlidingViewController/FirstTopViewController.m +++ b/ECSlidingViewController/FirstTopViewController.m @@ -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"];