Hi there,
I am in need of creating something that works like a book. Lets imagine I have text (2000 characters or something that needs to split across pages, not scroll view). I want to have a textview on the screen, that doesn't scroll, but can page through the text.
What would be a good way of going about this? I will want some simple font adjustment too. The current position in the original text is easy enough to keep track of (and this handles font size changes), but the thing I am not sure about is how to work out what portion of the text fits in the view.
Is there some way to say (Here is my text).
Then I get back: (At this font size, X will fit in).
Then cut it off there, and on the next page, start at the next word.
Thanks,
Kris
Posts
Anybody have any ideas on this?
Or even an idea of where to look?
Man, no ideas?
Take a look at the UIPageViewController class. It has a transition style called "PageCurl" I think. I haven't implemented anything like that, but I think that's how it usually is implemented. That should point you in the right direction.
Thanks buddy. I will have a look!