Commit b1d00b80 authored by 汪洋's avatar 汪洋

save progress

parent 406ceb50
......@@ -17,7 +17,6 @@
@implementation UIView (NavigationShadow)
- (void)addNavigationShadow {
self.layer.masksToBounds = NO;
self.shadowLayer = [CALayer layer];
self.shadowLayer.bounds = CGRectMake(0, 0, Constant.screenWidth, 12);
self.shadowLayer.position = CGPointMake(self.bounds.size.width/2, self.bounds.size.height - 6);
......@@ -27,9 +26,10 @@
self.shadowLayer.shadowRadius = 2.0f;
self.shadowLayer.shadowOffset = CGSizeMake(0.0, ONE_PIXEL);
self.isShowShadow = YES;
self.shadowLayer.shadowPath = CGPathCreateWithRect(CGRectMake(0, self.shadowLayer.bounds.size.height - 6, Constant.screenWidth, 6), nil);
CGPathRef path = CGPathCreateWithRect(CGRectMake(0, self.shadowLayer.bounds.size.height - 6, Constant.screenWidth, 6), nil);
self.shadowLayer.shadowPath = path;
CGPathRelease(path);
self.shadowLayer.shadowColor = [UIColor colorWithWhite:0 alpha:0.1].CGColor;
}
- (void)setIsShowShadow:(BOOL)isShowShadow {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment