Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

nightcrawler234

macrumors newbie
Original poster
Jul 21, 2010
19
0
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.