New Devs: Learn How to Use Apple's Docs!!

Discussion in 'iOS Programming' started by admanimal, Aug 20, 2008.

  1. macrumors 68040

    Joined:
    Apr 22, 2005
    #1
    There have been so many questions asked in here over the past few weeks/months that have clear answers right in Apple's documentation or sample code. 90% of programming for the average iPhone app involves simply piecing together existing API methods, so you need to be an expert at looking things up. Do you have a question about how to do something with a string? Search for the NSString class reference. Do you need to know how to change the background color of a label? Search for UILabel and look for anything that sounds like background color (backgroundColor maybe?).

    Apple's documentation is extremely clear and thorough. If you don't understand something it says, it probably means you need to spend more time learning Objective-C and/or object-oriented programming.
     
  2. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    I'd also recommend googling "site:discussions.apple.com <subject>" as there are a lot of iPhone threads on Apple's discussion pages.
     
  3. macrumors G3

    NT1440

    Joined:
    May 18, 2008
    Location:
    Hartford, CT
    #3
    where do i get ahold of this documentation ? (ive been wondering a few days actually)
     
  4. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
  5. macrumors 603

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #5
    I'll add some of these hints to the sticky FAQ, but the people asking these repeat questions don't look like they even bother to read the FAQ first.
     
  6. macrumors member

    Joined:
    Aug 9, 2008
    #6
    Apple's documentation is very detailed... Going through it is very helpful.... I like to consider building iPhone apps is like putting blocks of bricks together... since most of the objects are there for you to use....

    I personally learned more from the sample code provided than anything else.

    The initial challenge is understanding the syntax and capabilities of Objective-C....
     
  7. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #7
    I 100% agree. And if you can't understand the documentation perhaps you need to go back to the beginning and ensure you understand what you are doing. Or perhaps realise that programming is hard and not everyone "gets it"...
     
  8. macrumors member

    Joined:
    May 24, 2003
    #8
    Hallelujah! Someone has had the courage to come out and say it. Programming is hard. It requires you to think very hard and to have a lot of perseverance and attention to detail. And even then, a lot of people just can't do it.

    Yes, the iPhone is really nifty. Yes, it would be great to stick some stuff on the App Store and sell it and make a million. But if you've never managed to do any programming on the Mac or the PC, you won't necessarily be able to do any on the iPhone. If you want to try, then please do, and the people in this forum, and others like it, will help out. But be aware that a lot of programming is (in my experience, at least), just sitting down with the documentation and scratching your head and thinking, "How the %$@* am I going to do this?" If you aren't prepared to wrack your brains and figure things out on your own, you won't get anywhere.

    Having said that, if you're willing to try, don't let me put you off!
     
  9. macrumors 6502a

    Joined:
    Nov 9, 2007
    #9
  10. macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #10
    LOL. That's all I seem to think nowadays :). Then I get a eureka moment when I'm in the shower or in the garden having a ciggy and come running back to solve the problem only to find a new one 10 minutes later :).

    Still I love the challenge programming offers. Keeps my mind active.
     

Share This Page