try this
yourView.layer.shadowColor = [[UIColor blackColor] CGColor];
yourView.layer.shadowOffset = CGSizeMake(1.0f, 1.0f);
yourView.layer.shadowRadius = 3.0f;
yourView.layer.shadowOpacity = 1.0f;
You'll need to replace "yourView" with nav bar or table cell
Btw, also you'll need import QuartzCore/CALayer.h