One Quickie


Adding an info button to the nav bar (UINavigationController->General)
UIButton *button = [UIButton buttonWithType: UIButtonTypeInfoLight];
[button addTarget: self
        action: @selector(about:)
        forControlEvents: UIControlEventTouchUpInside];

UIBarButtonItem *infoItem =
    [[UIBarButtonItem alloc] initWithCustomView: button];

... make any other button items you want

NSArray *rightButtonItems = @[ spacer, infoItem, widerSpace, someOtherItem ];
_viewController.navigationItem.rightBarButtonItems = rightButtonItems;



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com