Contextual UIToolbars

Here’s an excellent post on how to manage UIToolbars in nested views:

The new release of iPhone OS 3.0 adds some nice API:s for managing a contextual toolbar. This is well needed as toolbars in the current iteration of iPhone OS is not only poorly documented, it is also quite hard to do right. So I will go over how to do toolbars the right way, for all who want to implement them the old way before this summer, and for all who think they need to support older versions after then …

Looks more or less along the same lines as how we’ve done this kind of thing, but rather more elegant. So if you have a design like this,

layout_correct

take a look!

h/t: LinkedIn’s Cocoa Touch!

Alex | March 26, 2009
  • Fredrik Olsson March 27, 2009 at 12:26 am
    I do not think I broke any NDA; contextual toolbars was right up there on the slides at the iPhone OS 3.0 event. And them being nice can hardly be a secret ;).
  • Alex March 27, 2009 at 7:10 am
    Ah, was it? I managed to miss that. OK, fixed :)

Leave a Reply