Need Help Writing Very Basic App

Discussion in 'iPhone/iPad Programming' started by nightcrawler234, Jul 21, 2010.

  1. macrumors newbie

    Joined:
    Jul 21, 2010
    #1
    Hi,

    I recently registered as an iPhone developer with Apple. New to SDK/objective-c, but I'm learning fast.

    I want to write a basic app that does the following:

    Display some text on a background (say a random fact) - every time the user shakes the iphone or slides right with their finger, it goes to the next random fact. When the user slides left with their finger, it goes to the previous fact.

    How exactly can I create an array of strings, store info in that array, and traverse through the array based on the user's action (shake/slide/etc).

    Appreciate it if anyone could get me started.
     
  2. macrumors 603

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #2
    Basic Cocoa Touch stuff. Start reading up on delegate methods, Foundation classes, and Obj C iteration constructs.
     
  3. tod
    macrumors regular

    Joined:
    Oct 3, 2009
    Location:
    Ohio
    #3
    Try stackoverflow.com for answers and code examples.
     

Share This Page