Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3215474
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:10:55+00:00 2026-05-17T15:10:55+00:00

New to iOS, coming from the Java / Swing world, where I’m used to

  • 0

New to iOS, coming from the Java / Swing world, where I’m used to creating UIs programmatically, letting components size themselves and using various clever layout managers to arrange things.

It already seems clear that the iOS way is to make heavy use of Interface Builder, with a lot of fixed sizing and positioning. I’m not sure IB is ever going to come naturally, but I guess fixed layouts make sense given that you’re working with limited space and a fixed window size.

It still seems like I’m writing a lot of boilerplate, though, and violating DRY, and so on.

Can somebody point me to a good primer on laying out iOS UIs, particularly programmatic UIs?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T15:10:55+00:00Added an answer on May 17, 2026 at 3:10 pm

    You don’t really need to use IB to write MonoTouch apps. I almost never do. The CocoaTouch API is fairly simple and straightforward to develop on.

    I haven’t really found any writeup on UI development other than the apple documentation (which is really good, by the way, worthy reading), so here goes a couple of tips, based on my experience:

    • Inheritance is key to maintaining the code clean. You can inherit from basically any class in the API, like buttons, controllers, views, etc. Inherit and add your customizations in those classes. Don’t shove everything in the AppDelegate like many examples show. You’ll thank me later on.
    • Have I mentioned inheritance already?
    • The one thing iOS doesn’t have is a layout manager, so if you’re used to Java like you mentioned, this will sound a little strange. Different from what Java people think, this is not a big deal. UITableViews help tremendously with this (vide next point).
    • A lot of iphone apps are built on top of the UITableViewController, even apps that don’t look like tables. It’s a great framework to do anything related to scrolling. Learn to use it well. Almost anything that scrolls vertically is a UITVC. Follow the guidelines that define when you create and when you dispose cells and objects.
    • Be careful every time you add a Frame location in your control. Instead of setting hardcoded values, try using offsets from other locations (x+40, for example) whenever possible.
    • Make sure you add your views to the proper container as necessary. For example, if you’re adding a global “Loading” view, add it to the Window object, while if you’re adding a image on the left side of a table cell, use the ContentView. iOS changes those special views automatically all the time (resizing screen to fit “on call” bar at top, or rotating phone).
    • Miguel de Icaza has created a great framework for managing forms and tables, called MonoTouch Dialog. Take a look, and enjoy.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A new iOS ViewControllers created from a template contains several boilerplate methods that call
I am new to ios app development, Below is the code I used to
How do I like a page using the new Facebook iOS SDK? (http://github.com/facebook/facebook-ios-sdk) I'm
I’m an experienced developer, but relatively new to iOS. I’m having some trouble with
I'm new to developing in iOS and successfully ran through a tutorial on how
I have a tabbar-based iOS app with two tabs. When I tab into the
I started a project under iOS 3.1 and I stopped developing for a while.
I'm having trouble finding the GameKit api that contains the Game Center Reference. Apple
I'd like to build in some weather functionality into my app and I'm going
I have the following code that saves the users sketch data to a file...

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.