_rootViewController.view.layer.shadowOffset = CGSizeZero;
_rootViewController.view.layer.shadowOpacity = 0.75f;
_rootViewController.view.layer.shadowRadius = 10.0f;
_rootViewController.view.layer.shadowColor = [UIColor blackColor].CGColor;
_rootViewController.view.layer.shadowPath = [UIBezierPath bezierPathWithRect:self.view.layer.bounds].CGPath;
_rootViewController.view.clipsToBounds = NO;
转载于:https://blog.51cto.com/3426724/1059061