I am adding a shadow to a tableview using the following code. In general, my understanding is you have to set clipsToBounds or masksToBounds to NO to add the shadow.