I’ve seen a few different versions of this, so today I’ll post what I use to help me debug code execution order and debug info. The code gets removed for non-debug builds, and you’ll have to define DEBUG in your debug build settings. Here it is: #if DEBUG==1 #define AGLog(format, …) NSLog(@”%s:%@”, __PRETTY_FUNCTION__,[NSString stringWithFormat:format, ## [...]
Archive for the ‘Tutorials’ Category
Adding a UITableView to a custom UIViewController
May 16th, 2010 21 Comments
On my last tutorial post I demonstrated how one would add a UIToolbar to a UITableViewController for the case where you would want a UITableViewController to be the main view, rather than embedding a UITableView in a custom UIViewController. I will now explain how to do the opposite, which is embedding a UITableView in your [...]
Posted in Tutorials | Tags: checkbox, delegates, double click, hooks, interface builder, search bar, search property, uiview, user interface, xcode
Adding a UIToolbar on a UITableViewController
May 15th, 2010 7 Comments
In one of my current iPhone projects I have the need to add a UIToolbar on a UITableViewController to add some features that apply to the current item being viewed. I decided to use a UITableViewController instead of rolling out a custom view for a couple of reasons. The item being viewed has several sections, [...]
Posted in Tutorials | Tags: alloc, frame size, iPhone, rectangle, search listings, subview, toolbar, wheel


