Under the Bridge

Contextual UIToolbars

Here’s an excellent post on how to manage UIToolbars in nested views … at least if you need to do it right now; we note that the quote below includes some NDA-breaking statements [EDIT: Apparently this was actually mentioned on the public slides at the OS 3.0 dog and pony show -- in which case it's not under NDA, pardon our paranoia] if it is indeed correct, which of course we therefore have no statement on ourselves. But we’ll cheerfully pass along what other people say!

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

 

download the code and take a look! 

h/t: LinkedIn’s Cocoa Touch!

2
  • Fredrik Olsson

    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 ;) .

  • http://www.alexcurylo.com/ Alex

    Ah, was it? I managed to miss that. OK, fixed :)