Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development > iPhone SDK Development - Advanced Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 03-01-2010, 06:10 AM   #1 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 31
Default Help with an interface idea

Hi

I'd like to write a simple opening interface for a program and I've come up with an idea I'm just not sure what the best way to implement it is.

There will be at least 3 (possibly 4 or 5) different options and I'd like to put them onto a rotating menu. The background will be a sky effect to match the company's current software.

I'd like to have the effect of a carousel where the front item can be selected and will take the user to that part of the program. Or the user can hold the front icon and swipe left or right and the carousel will rotate to the next item in that direction.

I'm not asking for code or anything just some advice on how to do this. I could do this in 2D using resizing and movements but I'm thinking it may be easier to do using some of the 3D libraries available on the iPhone. I have done a few 3D things in the past but never on the iPhone. Could someone point me in the right direction and offer any tips?

Once I've done this I'm hoping to be able to use this menu for a couple of different versions for the same company.

Thanks

Oliver
Fogmeister is offline   Reply With Quote
Old 03-02-2010, 07:54 AM   #2 (permalink)
Registered Member
 
Join Date: Apr 2009
Location: michigan
Posts: 185
Default

Quote:
Originally Posted by Fogmeister View Post
Hi



Once I've done this I'm hoping to be able to use this menu for a couple of different versions for the same company.

Thanks

Oliver

I did something like that once. But decided it wasn't very pratical.

I implemented the rotating carousel in jsquery in a uiwebview, and then used custom url protocols to call the methods on the view controller the uiwebview was in. The effect is very fast and efficient.

Another way, although it may be difficult with 5 views, is to use a flip transition, search on google for flipsideviewController, you should find quite a few examples, you are essentially setting up a navigation view array that you are going to page through with transitons. This may be a bit slower than the above but doesn't resort to javascript.

Finially you could possible create the animation using the open gl template, but it will take some time to get that to work.
michelle is offline   Reply With Quote
Old 03-06-2010, 06:18 PM   #3 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 4,814
Default

Quote:
Originally Posted by Fogmeister View Post
Hi

I'd like to write a simple opening interface for a program and I've come up with an idea I'm just not sure what the best way to implement it is.

There will be at least 3 (possibly 4 or 5) different options and I'd like to put them onto a rotating menu. The background will be a sky effect to match the company's current software.

I'd like to have the effect of a carousel where the front item can be selected and will take the user to that part of the program. Or the user can hold the front icon and swipe left or right and the carousel will rotate to the next item in that direction.

I'm not asking for code or anything just some advice on how to do this. I could do this in 2D using resizing and movements but I'm thinking it may be easier to do using some of the 3D libraries available on the iPhone. I have done a few 3D things in the past but never on the iPhone. Could someone point me in the right direction and offer any tips?

Once I've done this I'm hoping to be able to use this menu for a couple of different versions for the same company.

Thanks

Oliver
If you want a 3D effect your best bet will be to use OpenGL. That is a big topic to tackle however, and WAYYYY beyond the scope of a posting in a developer board. I'd suggest buying a book on OpenGL. There may also be some books that give you a crash course in OpenGL ES for simple 3D animations.

I just did a little searching and found a sample app in Apple's code called MagicCube. That should give you an idea of how to do OpenGL 3D rotation.

Once you create a 3D object and get it to display, rotating it is quite simple. It's just a question of applying a transformation matrix to it. However, you would have to write your own code to interpret swipe gestures, since OpenGL does not have any of the support for Cocoa touch that you're used to. You'd also have to write a timing loop to animate the rotation, since core animation is part of core foundation, not OpenGL Those things are fairly straightforward however.
Duncan C is offline   Reply With Quote
Old 03-09-2010, 03:56 PM   #4 (permalink)
Confused
 
Join Date: Mar 2009
Location: New York
Age: 36
Posts: 88
Default

May I also suggest simplifying the problem? Instead of 3D, it might actually be more practical from the user's perspective to have a "rotary dial" like interface, that way you can implement it quiet simply by creating an image of the wheel, then translating the swipes into rotation offsets, then applying the cgaffinetransform to the uiimageview.

You can even overlay it with another view with alpha set to 0.5 with an opening at the bottom, that the user will have to align the menu item on the wheel with before tapping...

Just an idea...

You will have to implement your own inertia on the wheel too. This is something I am working myself on actually...

Good luck!

Rick

Quote:
Originally Posted by Fogmeister View Post
Hi

I'd like to write a simple opening interface for a program and I've come up with an idea I'm just not sure what the best way to implement it is.

There will be at least 3 (possibly 4 or 5) different options and I'd like to put them onto a rotating menu. The background will be a sky effect to match the company's current software.

I'd like to have the effect of a carousel where the front item can be selected and will take the user to that part of the program. Or the user can hold the front icon and swipe left or right and the carousel will rotate to the next item in that direction.

I'm not asking for code or anything just some advice on how to do this. I could do this in 2D using resizing and movements but I'm thinking it may be easier to do using some of the 3D libraries available on the iPhone. I have done a few 3D things in the past but never on the iPhone. Could someone point me in the right direction and offer any tips?

Once I've done this I'm hoping to be able to use this menu for a couple of different versions for the same company.

Thanks

Oliver
nycdude777 is offline   Reply With Quote
Reply

Bookmarks

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: 248
24 members and 224 guests
ADY, bookesp, chillyh, ckgni, dacapo, Dani77, Davey555, Desert Diva, Dominus, glenn_sayers, HemiMG, JasonR, LEARN2MAKE, M.A.S., marshusensei, mer10, nobre84, prchn4christ, Raggou, Rudy, ryantcb, themathminister, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,765
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

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