Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-13-2010, 02:48 PM   #1 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 127
Error404 is on a distinguished road
Default A lot of different text into an array!

Hi,

I have a couple of hundred short stories that will show up randomly on the screen when the user taps a button.

What would be the best way to make this happend in terms of just the data?

My first thought was to put all the information info an NSDictionary? Is that any good? How do you do that in code in that case?

Thanks in advance
__________________
http://www.innovationdreams.se
Error404 is offline   Reply With Quote
Old 01-13-2010, 03:17 PM   #2 (permalink)
A Young Perfectionist
 
atothendrew's Avatar
 
Join Date: Jun 2009
Posts: 111
atothendrew is on a distinguished road
Send a message via AIM to atothendrew
Default

i would personally just use a c string array and generate random numbers to choose what files to display to the user.

Thats me though.
__________________
Work Progress - The Perfect app for all!

The Advanced Random Number Generator

FPS Stats - Avaliable now!
The users are LOVING it! and new features are added Weekly!
"This is by far the greatest app I have ever used. Great Idea!" - KyRo .LV, 5 stars

atothendrew is offline   Reply With Quote
Old 01-14-2010, 01:57 AM   #3 (permalink)
Senior Member
iPhone Dev SDK Supporter
 
Join Date: Jan 2010
Location: Issaquah, WA
Age: 42
Posts: 1,244
dljeffery is on a distinguished road
Default

Quote:
Originally Posted by Error404 View Post
My first thought was to put all the information info an NSDictionary? Is that any good? How do you do that in code in that case?
If you are talking about data as in the text of the short stories, I'd put them in individual text files and add those as resources to your app. And then I'd probably also add a SQLite database with records that just point to the files.
dljeffery is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 336
11 members and 325 guests
2Apps1Day, akacaj, Domele, michelle, NetGuru, NSString, SLIC, Sloshmonster, soohyun, Techgirl-52, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,650
Threads: 94,114
Posts: 402,886
Top Poster: BrianSlick (7,990)
Welcome to our newest member, soohyun
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:59 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0