Started working through the Apress book ‘Beginning iOS 5 Development‘ and have been happy with it so far but I do think I have found the *ugliest line of Objective-C I have seen:
switchViewFrame.origin.y += [UIApplication sharedApplication].statusBarFrame.size.height;
What does that do? It is setting the beginning of the y-axis(top left corner) of the view to just below the status bar, as to not be hidden by it.
*not ugly as in bad code, ugly as in not very pretty to look at.