I know how to add a shadow around UIViews
and even to animate them when the views bounds
change. However I've come across a view that is a little more tricky it seems. UITableView
Adding a shadow around this view is easy enough and even going by this example: Adding drop shadow to UITableView
It works well. However my problem is that I need the shadow to go around the last cell
in the UITableView
and not it's bounds
. So, top, sides and bottom would be the last cell in the UITableView
.
Thinking about how it'd work leaves me to believe there is a better solution. Maybe if I was able to adjust the UitableView
s frame based on the number of cells? However the cells are dynamic and I don't know their heights until runtime.
Any suggestions would greatly be appreciated.
Thanks!