Thursday, February 24, 2011

Transparent Grouped UITableView on iPad

Recently I found myself needing to have a transparent UITableView on the iPad. Just setting the background to clearColor works on the iPhone but not on the iPad. So after more research I found this snippet that needs to be placed in viewDidLoad.

tableView.backgroundView = nil;

Setting this property to nil will allow whatever is behind the tableView (in my case a UIImageView) to show through.