views:

1035

answers:

3

In the clock app that comes with the iPhone there is a tab view for setting alarms. In that view each of the UITableViewCell instances have a drop shadow around them. Does anyone know how to achieve the same effect?

Also it looks like the tab bar at the very bottom has a drop shadow above it as well.

Ideas on how to achieve the same look would be greatly appreciated.

A: 

I would guess that there is an extra cell which contains just a background image which is the transparent dropshadow. If it's not a cell (because that might create scrolling weirdness) it is probably an extra view positioned below the bottom cell of the UITableview which - again - simply contains an image of the drop shadow.

Roger Nolan
Hmmm... I don't think the extra cell theory would work, but the extra view below the cell would definitely be a possibility. I will try it out tomorrow
ordord00
+1  A: 

I was wondering how to do that and it just occurred to me to use the UITableView's footer view:

myTableView.tableFooterView = myCustomViewWithDropShadowImage;
Thomas Müller
A: 

your best bet is to go with customized cell backgrounds created with photoshop.....check out Matt Gallaghar's amazing blog on customized UITableViewCell

samyzee
Here's the link: http://cocoawithlove.com/2009/08/adding-shadow-effects-to-uitableview.html
Johan Kool