This is part of an ELC Tech Network

Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




How to Navigate a Series of Views? (i.e. a PowerPoint type)

UserPost

9:28 am
February 8, 2010


outtoplay

Noob

NJ

posts 2

1

First off, great site… It's given me the push to reallt delve into iphone dev (which for an artist is damn scray).  I've researched this topic, and have lots of 'pieces' but I can't seem to bring it together.  Any help wou;d really be appreciated.

The simplest example would be a simple Powerpoint presentation.  Image on the background of each view (subview), a text layer on top, and two buttons(prev/next) to flip from view to view. I've seen lots of examples for 2 screen flips (like a Utility app), but what if you had 20 screens/views to flip thru?

There's more that I'd want to do, but I can research adding narration, transitions…blah blah blah.   My guess is, the answer is somewhere between NSImageViews and UIViews.  But it isn't gelling.

Thanks,

Brendang

12:17 am
February 11, 2010


marlenez

Noob

posts 3

2

Brendang,


You can do this by creating multiple view controllers. So for example – say you have 4 pages that you want to navigate through, each with buttons for next and previous and a button to go directly to page 1.  Each view controller imports and references the view controller for the page before, after and for the first page. Create 3 buttons for each view and connect with methods to display the particular view that you want to call. 


6:09 am
February 18, 2010


outtoplay

Noob

NJ

posts 2

3

Marlenez

Sorry for the delay getting back and thanking you.  Your idea is simple yet perfect.  Even a code-impaired chimp such as myself should be able to make that work…


best,

B.Cool', '1');” src=”../../../wp-content/forum-smileys/sf-cool.gif” alt=”Cool” />

9:15 am
February 21, 2010


marlenez

Noob

posts 3

4

Glad I could be of help.

Search 

About the iCodeBlog forum

Most Users Ever Online:

44


Currently Online:

5 Guests

Forum Stats:

Groups: 2

Forums: 6

Topics: 459

Posts: 945

Membership:

There are 1018 Members

There has been 1 Guest

There are 2 Admins

There is 1 Moderator

Top Posters:

bobcubsfan – 54

crazyiez – 30

jitesh61 – 19

Uhu – 17

AdeC – 17

Nick – 15

Administrators: Brandon (88 Posts), Collin (0 Posts)

Moderators: VertigoSol (26 Posts)