How to create a simple text view with page flip effect.

84 views
Skip to first unread message

Sam

unread,
Sep 11, 2010, 3:39:41 PM9/11/10
to Leaves Developers
Dear members - I am new to iphone development and I am working on a
ebook project for a client, the ebook contents are stored in a flat
text file which I read into NSString and span the contents into
multiple pages, I don't know how to create a text view inside the
"renderPageAtIndex" method, I would really appreciate if you can
provide a sample code for text view with page flipping.

I want to use leaves to provide page flipping and later provide the
ability to change the font and other style elements.

Thank you so much in advance!!

Regards
Sam

Daniel Bonates

unread,
Sep 12, 2010, 10:40:21 AM9/12/10
to leaves-d...@googlegroups.com, Leaves Developers
Hi Sam,

I dont think you cand do it right now, I mean, in a easy way. My sugestion is for you is: kkep in mind that you are drawing on a view all content using quartz, not UIKit facilities. Any way, at ladt in theory, you can add a UITextView view, not the class itself. But maybe the better way to get what you want, is to deal with CoreText framework, and/or InputText frame work. From here, its a long path to get things done, at last for me. But for the basics stuff, reender a text using coretext I can tell you that its pretty ease, including build pages (you will need frames), the only bad news about coretext is about making a selection engine. I didnt worked on this yet.

Cheers,
Bonates

Sent from my iPad

kate

unread,
Aug 27, 2012, 3:29:34 AM8/27/12
to leaves-d...@googlegroups.com
I think that you convert create text contents in PDF format, there are many PDF viewers can allow you to read it with page flipping effect.
Besides, you can convert the documents into page flipping files via free tools like Codebox(http://www.codebox.es/pdf-to-flash-page-flip ) or by paid tool flip page software.
Reply all
Reply to author
Forward
0 new messages