building apps purely programatically

Discussion in 'iOS Programming' started by blue-lion, Dec 19, 2011.

  1. blue-lion macrumors member

    Joined:
    Jan 26, 2010
    #1
    Hi, i just can't seem to get a 'foot hold' in writing simple Apps . The problem is i'm not a complete beginner and am fairly proficient in objective c, but would like to do something more challenging than 'hello world' , but not something so difficult i become completely swamped.

    However , i struggling with Xcode

    First I start with Xcode 3 , start to learn it.. , don't fully understand XIB's but persevere anyway , then as i start to get to grips with that , then Xcode 4 comes along and the interface changes subtly and confuses me , then 4.2 and storyboarding....??


    sometimes i think should just forget all 'aids to programming' and do everything programatically .


    am i fool hardy ?,
     
  2. admanimal macrumors 68040

    Joined:
    Apr 22, 2005
    #2
    You can do everything without xibs, but if you are serious about iOS development then you should learn how to use them, with or without storyboarding.
     
  3. North Bronson macrumors 6502

    Joined:
    Oct 31, 2007
    Location:
    San José
    #3
    Don't worry. You are not alone. All of my pro work was built without XIBs. Some developers prefer doing that. It can be a perfectly reasonable approach. It actually comes in handy to be able to know more about how views are actually created and positioned. There are times when you are going to want to go in and manipulate things with code even if the whole view was created with XIBs.

    There are some cases where using XIBs is handy. Be that as it may, more developers should at least have some basic experience creating things manually.
     
  4. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #4
    I've made apps with and without XIBs. The app I'm working on now is Storyboard based.

    I think the XIBs and Storyboard are definitely helpful at writing neater code... a half dozen lines of code for just setting up one button becomes a drag and a drop with a few checkmark checks.

    If you haven't learned XIBs or Storyboards yet, it might be better to just dive into Storyboards, I like this two part tutorial on them: http://www.raywenderlich.com/5138/beginning-storyboards-in-ios-5-part-1
     
  5. jonnymo5 macrumors 6502

    Joined:
    Jan 21, 2008
    Location:
    Texas
    #5
    There is so much support for storyboards and xibs that it's hard to justify not using them. You are better off going with the Apple way of doing things than going against it.

    What about them is tripping you up? Have you checked out the iPhone courses on iTunes U or the WWDC videos? Once you "get" them it can really speed up UI layout.
     
  6. jacekartymiak macrumors newbie

    Joined:
    Apr 13, 2009
    #6
    No, it is possible to create apps without xibs. Most of what I write is xib-less. It's my preference and as long as the apps work and pass the Apple controls I see no point in changing my ways.
     
  7. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #7
    Just a warning about Storyboards: if you are writing apps that still need to run under iOS 4.x, you can't use Storyboards. They are an iOS-5-only feature.
     
  8. jnoxx macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #8
    They have told me it should work iOS 4.3+
    But I think I have been informed wrong, and a 100% correct answer would be awesome (so i can tell it to clients too..)
     
  9. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #9
  10. firewood macrumors 604

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #10
    If you want to start with basic programatic software, try writing some plain C code, and run it from the Terminal command-line.

    Or even simpler, get a cheap $30 Arduino kit, where even the input and output are simple 1-bit buttons and LEDs.

    Those will show you the Basics of pure programming, stripped of all the GUIs, and sophisticated objects, and big hand-holding frameworks.

    Used to be that one would learn this stuff using assembly language, but books with stuff such as beginning 6502 Asm for the Apple II are long out-of-print.
     
  11. jnoxx macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #11
  12. North Bronson macrumors 6502

    Joined:
    Oct 31, 2007
    Location:
    San José
    #12
    The biggest problem I have seen that XIBs cannot handle well (at all?) is when you have a view controller that needs to support two different layouts for portrait and landscape. You might have a portrait view that has one large view. The view shoots over to one side and a new view slides in when the user rotates to landscape. That sort of thing needs to be done with code. Laying out one orientation with code is usually easier when the opposite orientation is also laid out with code. That has been my experience. I thought it was easier.
     
  13. MattInOz macrumors 68030

    MattInOz

    Joined:
    Jan 19, 2006
    Location:
    Sydney
    #13
    How does what you want to do differ from a UISplitView controller?
     

Share This Page