PDA

View Full Version : UITextView (jump page)




doudou974
Oct 20, 2009, 09:46 PM
Can anyone point me in the right direction?
its like Stanza (eReader), How did they manage to change page everytime the text ending on the screen.

When you change the size of the text and it go out of the border of the page (no scrolling), it will automatically create a new page.

thanks



hamiseixas
Oct 21, 2009, 08:15 AM
You can use a UIScrollView to make pagination.


Hope it helps.
Hami.

doudou974
Oct 21, 2009, 09:17 PM
Thanks, I heard that I have to use UiPageView inside the UIScroll View to
make the pagination.

dejo
Oct 21, 2009, 11:32 PM
...UiPageView...
No such thing.

doudou974
Oct 22, 2009, 01:24 AM
In another forum someone wanted to swip through Views.
If on the first view, he can swipe to the left, it weill go to another one.

Someone said that its already a UI object, the UIPageView, each page view is a UIView.

jnic
Oct 22, 2009, 04:47 AM
Most likely they meant UIScrollView (https://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIScrollView_Class/Reference/UIScrollView.html), which, with the pagingEnabled (https://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIScrollView_Class/Reference/UIScrollView.html#//apple_ref/occ/instp/UIScrollView/pagingEnabled) property set to true, will achieve this behavior.