mirror of
https://github.com/zhigang1992/ECSlidingViewController.git
synced 2026-03-29 00:18:36 +08:00
Add shadow to first top
This commit is contained in:
@@ -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"];
|
||||
|
||||
Reference in New Issue
Block a user