title: iOS: Table cell footer dropshadow
body: <p>I have a tableview with only a few rows. So instead of displaying a bunch of blanks I added a blank UIView to the tableview.footer. However I would like the last cell to cast a dropshadow on the UIView. How would I achieve this? Here is my current code.</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
      UIView *emptyView = [[UIView alloc] initWithFrame:CGRectZero];
      CALayer *layer = [emptyView layer];
      [layer setShadowOffset:CGSizeMake(0, 1)];
      [layer setShadowColor:[[UIColor darkGrayColor] CGColor]];
      [layer setShadowRadius:8.0];
      [layer setShadowOpacity:0.8];
      self.tableView.tableFooterView = emptyView;
  }
  </code></pre>
  
  <p>EDIT:
  It is adding the UIView to the footer but not creating the dropshadow. I'm not sure the layer is the best approach for this or even correct for this type of thing.</p>