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

View Single Post
Old 07-04-2009, 03:07 AM   #2 (permalink)
NewiPhoneDeveloper
Registered Member
 
Join Date: Jul 2008
Posts: 459
Default

Quote:
Originally Posted by MGunetileke View Post
Hey y'all...

I've been wondering whether it is possible to replicate the awesome transition animations the iPhone has on its iPod app (when you turn the phone on landscape ). This is the one which shows the album cover art and has a smooth view arrangement that allows you to flip through the songs in a really cool way.

Implementing this (or anything similar) from scratch seems like a massive task.. Any idea if there is perhaps a library / sample code which shows how this kind of animation system built up?

Just to clarify, I am familiar with the normal flip animations and CG Animation types.. just wondering how we can setup something of this nature..

Thanks!!
If you want transition when turning the phone, you need to check the device orientation, like:



Code:
[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];	
	[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didRotate:)
							name:@"UIDeviceOrientationDidChangeNotification" object:nil];	

- (void) didRotate:(NSNotification *)notification
{	
	UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];
	
	if (orientation == UIDeviceOrientationLandscapeLeft) {
              //do something here
        else if (orientation == UIDeviceOrientationPortrait){
             //do something here
        }
}
Rebuilding that iPod landscape album browser function, called "coverFlow" is a whole different story. If you're doing it really good, Apple might reject your app for "using" their private coverFlow API. If your version is somewhat like Apple's coverFlow, they might reject your app for including features they already provide (can't remember their official line). Either way, you're screwed. On the other hand, I wouldn't say it's impossible. I've definitely seen apps on the store, that clearly imitate coverFlow, but I've also heard about rejections. As developers recently discovered, some can get away with things, that others can't. Rumour has it, that it's more or less the reviewers choice plus some luck.
NewiPhoneDeveloper is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,836
Threads: 89,209
Posts: 380,642
Top Poster: BrianSlick (7,129)
Welcome to our newest member, abbylowin
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:22 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.