I have the below menu style layout that mimics facebook. I would like to have a dropshadow on the left side like below however the code I am using with layer shadows makes the a
You can just inset the views bounds and set the shadow path:
UIEdgeInsets contentInsets = UIEdgeInsetsMake(10, 0, 0, 0); CGRect shadowPathExcludingTop = UIEdgeInsetsInsetRect(self.bounds, contentInsets); self.layer.shadowPath = [UIBezierPath bezierPathWithRect:shadowPathExcludingTop].CGPath;