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 11-20-2011, 05:01 PM   #1 (permalink)
Registered Member
 
Join Date: Nov 2011
Posts: 6
yassassin is on a distinguished road
Default Large amount of text

Hi,
I would like to develop an app that store and display a large amount of text.
Consider the following example.
My app displays in a table view, some titles of stories. If you click on each title, you can display the story. And each story is made of for matted text (bold, italic...).

Consider that I would like to embed the stories in local, inside the app, without downloading them from the web.

How do you implement this? Where do you store the text of each story?

Thank you in advance for your precious help,
yassa
yassassin is offline   Reply With Quote
Old 11-20-2011, 05:07 PM   #2 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by yassassin View Post
Hi,
I would like to develop an app that store and display a large amount of text.
Consider the following example.
My app displays in a table view, some titles of stories. If you click on each title, you can display the story. And each story is made of for matted text (bold, italic...).

Consider that I would like to embed the stories in local, inside the app, without downloading them from the web.

How do you implement this? Where do you store the text of each story?

Thank you in advance for your precious help,
yassa
For something as large as stories, you might want to store them as separate files in your bundle.

Formatted text could be a problem though. iOS doesn't have direct support for formatted text. The only "out of the box" solution is a UIWebView, and then you'd need to save the text as HTML.

iOS includes a low-level framework called Core Text that would let you draw formatted text, but you would have a lot of work to do to make that work.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is online now   Reply With Quote
Old 11-20-2011, 05:07 PM   #3 (permalink)
Just helping out.
 
Domele's Avatar
 
Join Date: Feb 2011
Posts: 2,565
Domele is on a distinguished road
Default

You'd be better off storing the stories as PDFs as displaying formatted text is going to be more difficult.

From there, it's just a simple tableview that displays a list of titles. When the user clicks the title, open up a detail view which is just a PDF reader, something that has already been built be generous developers and open sourced.
__________________
If you are looking for a quality developer, I'm your man. Give me a PM if you are interested.

New app - See screenshots and details at www.globaclock.com.

If you want to thank me, click the link. Every click counts. If you want to do more, buy my app. A link is available on my website. Thanks.
Domele 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: 390
18 members and 372 guests
7twenty7, Apptronics RBC, baja_yu, chiataytuday, Clouds, dedeys78, dre, Duncan C, e2applets, iekei, ipodphone, jeroenkeij, leostc, matador1978, mbadegree, QuantumDoja, Retouchable, usernametaken
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,125
Posts: 402,910
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

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