Cocoa-Matic

iPhone, iPod touch, iPad tutorials, examples and sample code. Come and get it!

Wednesday, August 18, 2010

Prevent UITableView from scrolling

Quick tip:

UITableView elements enable vertical scrolling by default. The following code disables the scroll:
myTableView.scrollEnabled = NO;

Labels: , , ,

Friday, August 13, 2010

Unwanted UITableView gray background on iPad

I came across something weird when developing an iPad app. I have a UITableView that does not encompass the entire screen and I have it set to grouping mode so it has nice looking rounded corners. For some reason when this is displayed, the background of the UITableView is light gray. It seems to be ignoring the backgroundColor property.

So, here's the fix:
Read more »

Labels: , , ,


« Older Entries