Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UIEdgeInsets contentInsets = UIEdgeInsetsMake(10, 0, 0, 0);
- CGRect shadowPath = UIEdgeInsetsInsetRect(self.dealMainContentView.bounds, contentInsets);
- self.dealMainContentView.layer.shadowPath = [UIBezierPath bezierPathWithRect:shadowPath].CGPath;
- self.dealMainContentView.layer.shadowColor = [[UIColor blackColor] CGColor];
- self.dealMainContentView.layer.shadowOffset = CGSizeMake(0.0f,0.0f);
- self.dealMainContentView.layer.shadowOpacity = 0.4f;
- self.dealMainContentView.layer.masksToBounds=NO;
- UIEdgeInsets contentInsets = UIEdgeInsetsMake(-10, -10, 0, 0);
- CGRect viewFrame=self.dealMainContentView.frame;
- viewFrame.origin.x= viewFrame.origin.x+5; // 5 distance from left
- viewFrame.origin.y= viewFrame.origin.y-15;
- viewFrame.size.width=viewFrame.size.width-1o; // 5 distance from Right
- viewFrame.size.height=viewFrame.size.height-20;
- CGRect shadowPathExcludingTop = UIEdgeInsetsInsetRect(viewFrame, contentInsets);
- self.dealMainContentView.layer.shadowPath = [UIBezierPath bezierPathWithRect:shadowPathExcludingTop].CGPath;
- self.dealMainContentView.layer.shadowColor = [[UIColor blackColor] CGColor];
- self.dealMainContentView.layer.shadowOffset = CGSizeMake(0.0,0.0f);
- self.dealMainContentView.layer.shadowOpacity = 0.3f;
- self.dealMainContentView.layer.masksToBounds=NO;
- UIEdgeInsets contentInsets = UIEdgeInsetsMake(-10, 10, 10, 10);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement