new to programming

Discussion in 'iOS Programming' started by macbook pro i5, Aug 9, 2011.

  1. macrumors 65816

    macbook pro i5

    Joined:
    May 13, 2011
    Location:
    New Zealand
    #1
    hello guys i am new to programming I watched an informative tutorial series and i would like to know how to make a simple tap me button which in turn makes a sound i only know the basics such as UILabel *label* or (IBAction)Click(id) sender;. now even though i am a complete newbie at programming i would still like to know, sorry guys i may sound like a complete idiot :( but can you help me create button with functionality. help greatly appreciated
     
  2. macrumors member

    Joined:
    Aug 8, 2011
    #2
    If you're new to programming, you probably want to focus on learning the required languages first, rather than learning "how to do X". If you learn how to make one specific thing (such as a button that makes a sound) then you'll struggle to apply what you've learned to anything else and you'll probably end up more confused than if you set out to learn the language.

    If you're looking at iPhone development, the language of choice is Objective-C. However, if you've got no programming experience then I'd strongly recommend learning the language C first, as Obj-C is a superset of C.

    There are a couple of books in iBooks about programming in both C and Objective-C that are good on-the-go reads.

    Here is a good link for some beginner tutorials for C:
    http://www.cprogramming.com/tutorial.html

    And MacRumors offers a nice Obj-C tutorial but, as I mentioned, you'll benefit from understanding C first:
    http://guides.macrumors.com/Objective-C_Tutorial

    Good luck!
     
  3. thread starter macrumors 65816

    macbook pro i5

    Joined:
    May 13, 2011
    Location:
    New Zealand
    #3
    thank you i greatly appreciate your response i will look at learning c then but objective c but isn't objective c just c with some tweaks to make it easier
     
  4. macrumors newbie

    Joined:
    Jun 30, 2011
    #4
    Not exactly. C is procedural, and objective C is object oriented.
     
  5. thread starter macrumors 65816

    macbook pro i5

    Joined:
    May 13, 2011
    Location:
    New Zealand
    #5
    so should i learn c first or c++
     
  6. macrumors member

    Joined:
    Aug 8, 2011
    #6
    C will be sufficient. C++ is almost a superset of C (I wouldn't actually consider it a superset because there are instances where C code would compile differently to C++ code in a C++ environment). I would consider it pretty essential to know C before tackling Objective-C. However, it wouldn't say it's essential to know C++ when having a go at Obj-C if you already know C - it would probably be advantageous, but not essential.

    The difference between C and C++ is that C++ is an object-oriented language (i.e. - it makes use of features such as classes and promotes principles such as polymorphism and encapsulation) whereas C is, as dok24 said, procedural.

    Obj-C is also an object-oriented language; it will follow many of the same principles of C++ but has a different approach.

    Your best approach (I say "best" but everyone has preferences and learns things differently) is probably this:

    Learn C --> Learn Obj-C --> Learn to use an iOS SDK (UI/Cocos etc).

    It should work like a knock-on effect - learning C will make getting to grips with Obj-C easier and, in turn, knowing Obj-C will ease programming in an iOS environment.


    I'm not saying that's the definite way to do things. As I mentioned, everyone learns differently and there are a lot of ways to get into app development. But if you follow the fundamentals thoroughly, it'll be of greater benefit in the long term.
     
  7. macrumors member

    Joined:
    Aug 8, 2011
    #7
  8. thread starter macrumors 65816

    macbook pro i5

    Joined:
    May 13, 2011
    Location:
    New Zealand
    #8
    thank you for all responses its helped once again thanks
     
  9. macrumors member

    Joined:
    Aug 8, 2011
    #9
    Any time. :)
     
  10. macrumors 68040

    Joined:
    Dec 14, 2007
    #10
  11. macrumors member

    Joined:
    Aug 8, 2011
    #11
    Erm, yeah, it is. Every example in the book is using Xcode 4. If that's not enough, the front cover literally reads "Learn how to use Objective-C and Xcode 4 with integrated Interface Builder".
     

Share This Page