Cocoa (Touch) for Swing Developers #1: Where Are the Layouts?

Posted by yar on Stack Overflow See other posts from Stack Overflow or by yar
Published on 2010-05-27T11:08:20Z Indexed on 2010/05/27 11:11 UTC
Read the original article Hit count: 118

Filed under:
|

My iPhone SDK and Objective-C learning is moving ahead quickly, thanks to several great books and online help (including this one). But I do have some basic questions due to what I already know that will be answered eventually, but I'd rather get a heads-up now if possible :)

  • Are there equivalents for LayoutManagers in Cocoa Touch? Are they used, or is absolute positioning used instead? I have seen some of the layout stuff in IB, but I'm not sure what to look at in code.
  • Aside from using the IB, are UIControls added directly to UIView instances using the addSubview (like add in Swing)?

These are just two concrete questions that I've thought of just now, but I would love to see any translation of Swing concepts to Cocoa Touch.

© Stack Overflow or respective owner

Related posts about java

Related posts about iphone-sdk