滑动界面 添加阴影

 

    _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

你可能感兴趣的:(阴影)