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 09-19-2010, 11:18 AM   #1 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 14
snowffer is on a distinguished road
Question How to navigat pages in an ebook by tapping a array of dots?

Hello, everybody

Thank you for opening this thread.

I am writing code for a magazine reader. I want to turn over a magazine from page 1 to page N by sliding a array of dots. Every dot stands for a page. (For example, when I have read page 1, then I want to read page 13 directly but not turning from page 1 to page 2, page 3... until page13).
Just like this:


And when tap a dot, there is a little window pops up to show which page it is.

So how can I implement it? It seems that UIPageControl only can turn over pages one by one.

I'll very appreciate your help.
snowffer is offline   Reply With Quote
Old 09-19-2010, 12:27 PM   #2 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 23
barrrt is on a distinguished road
Default

I would approach this by trying to build my own slider control. Mike Ash has a great tutorial about how to do that on his blog:

mikeash.com: Friday Q&A 2010-04-23: Implementing a Custom Slider

Once you have the slider, you could build your own page control, or simply swap subviews representing pages in your view controller, based on target action messages received from the slider.

Hope this helps,

Bart
__________________
Follow me on Twitter: barrrt

Till - Count down to events in your life
barrrt is offline   Reply With Quote
Old 09-20-2010, 07:58 AM   #3 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 14
snowffer is on a distinguished road
Default

Quote:
Originally Posted by barrrt View Post
I would approach this by trying to build my own slider control. Mike Ash has a great tutorial about how to do that on his blog:

mikeash.com: Friday Q&A 2010-04-23: Implementing a Custom Slider

Once you have the slider, you could build your own page control, or simply swap subviews representing pages in your view controller, based on target action messages received from the slider.

Hope this helps,

Bart


Thank you, Bart, the information is real helpful.

It's a pity that Mike Ash implemented that on Mac OS X, not on iOS. But still thank you very much.
snowffer is offline   Reply With Quote
Reply

Bookmarks

Tags
navigation, pages

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: 306
14 members and 292 guests
2ndSegment, cayladv57, cgokey, dermotos, djohnson, Domele, Hamad, linkmx, markuschow, pungs, Sloshmonster, teebee74, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,655
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, pungs
Powered by vBadvanced CMPS v3.1.0

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