Edward Potter
Edward Potter

Reputation: 3820

Views, subviews, root views, tabbarcontrollers, navbarcontrollers, woah! A diagram appraoch?

Sometimes just when I think got it, i get knocked back 2 steps. Like now add this block of code with a tabbarcontroller to this page, but with an edit button, and scrap that nav bar for a tabbar, but 1/2 is built in IB, the rest is built in code. yipes, sometimes it can get a bit nuts to make sense of it all.

Has anyone found a nice reference to this visually? Like how do you think about the layers of all these objects? Is there a visualization of the workings of the iPhone that someone recommends highly?

thanks

Upvotes: 1

Views: 321

Answers (2)

pxl
pxl

Reputation: 1297

trying to get a hang of it all from the beginning can be a bit overwhelming, considering all that's available to you. Especially since the views are all designed with so much flexibility that you can put almost anything anywhere and add as many or as few layers as you want in any order that you see fit.

Aside from the documentation, sometimes seeing example code can be very helpful.

Here's a neat tool that'll turn a nib/xib into its respective code:

http://github.com/akosma/nib2objc

With it, you can experiment and play around in Interface Builder, then see what the equivalent Obj-C code would be for it.

Play around long enough and you should get a good idea of what goes where.

Upvotes: 3

Alex Reynolds
Alex Reynolds

Reputation: 96937

The Apple UINavigationController documentation may help you think about your application's organization in a visual manner.

Upvotes: 0

Related Questions