Reputation: 1345
I have this code so far, but I just want a shadow at the bottom of a myView
myView.layer.shadowColor = [UIColor grayColor].CGColor;
myView.layer.shadowOffset = CGSizeMake(5, 5);
myView.layer.shadowOpacity = 1;
myView.layer.shadowRadius = 1.0;
Upvotes: 1
Views: 4359
Reputation: 15321
Change
myView.layer.shadowOffset = CGSizeMake(5, 5);
to
myView.layer.shadowOffset = CGSizeMake(0, 5);
see if that works for you.
Upvotes: 2