View Full Version : Need Help Writing Very Basic App

Jul 21, 2010, 07:58 PM

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.

Jul 22, 2010, 01:15 AM
Basic Cocoa Touch stuff. Start reading up on delegate methods, Foundation classes, and Obj C iteration constructs.

Jul 22, 2010, 09:35 AM
Try stackoverflow.com for answers and code examples.