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.

Tuesday, January 4, 2011

SplitViewController with NavigationBar doesn't retain Tint

Update: This appears to be working in the beta of IOS 4.3!

One of the things that is broken in iOS 4.2 is the tint color on the navigation bar in the Root View of the SplitViewController. What happens is that if you set the tint color, it will show correctly until you rotate to portrait mode, tap the List button, then rotate back to landscape.

The issue is discussed in great detail here:

One of the proposed solutions is to SubClass the NavigationBar Class and override the setTint method. (Credit goes to Hans Harris)

Below is a link to a complete working implementation.

Saturday, January 1, 2011

Memory Management

I was starting to put together a post on memory management and retain/release when I came across this post.