Skip to content

Commit 77409f7

Browse files
committed
Add note about top view shadows
1 parent 4913993 commit 77409f7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,19 @@ Below is an example of the anchorRightRevealAmount set:
8787

8888
![anchorRightRevealAmount example](http://dl.dropbox.com/u/10937237/reveal.png)
8989

90+
## Top View Shadow
91+
92+
`ECSlidingViewController` handles the shadowOffset, shadowPath, and their rotations for you automatically. The following code in your top view controller will add a shadow:
93+
94+
- (void)viewWillAppear:(BOOL)animated
95+
{
96+
[super viewWillAppear:animated];
97+
98+
self.view.layer.shadowOpacity = 0.75f;
99+
self.view.layer.shadowRadius = 10.0f;
100+
self.view.layer.shadowColor = [UIColor blackColor].CGColor;
101+
}
102+
90103
## MIT License
91104
Copyright (C) 2012 EdgeCase
92105

0 commit comments

Comments
 (0)