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 05-14-2011, 11:00 AM   #1 (permalink)
Registered Member
 
Join Date: May 2011
Posts: 19
s7162 is on a distinguished road
Question animation question

Hey guys,

I have this code,


Code:
-(IBAction)nextView:(id)sender
{
    [self.view addSubview:test.view];
        
}

is it possible to animate it when the new view controller shows? Im trying to achieve something like in iBooks, where the whole book case flips to show a new view. How do i do this?

thanks in advance!!
s7162 is offline   Reply With Quote
Old 05-14-2011, 11:12 AM   #2 (permalink)
Just helping out.
 
Domele's Avatar
 
Join Date: Feb 2011
Posts: 2,565
Domele is on a distinguished road
Default

Use UIVIew animation, I believe Duncan has a guide on that.
Domele is offline   Reply With Quote
Old 05-14-2011, 12:24 PM   #3 (permalink)
iOSDeveloperz
 
iOSDeveloperz's Avatar
 
Join Date: Apr 2011
Location: INDIA
Posts: 99
iOSDeveloperz is on a distinguished road
Send a message via Skype™ to iOSDeveloperz
Default

Quote:
Originally Posted by s7162 View Post
Hey guys,

I have this code,


Code:
-(IBAction)nextView:(id)sender
{
    [self.view addSubview:test.view];
        
}

is it possible to animate it when the new view controller shows? Im trying to achieve something like in iBooks, where the whole book case flips to show a new view. How do i do this?

thanks in advance!!
Try the following code. It is one of the animation style which you can perform
Code:
[UIView beginAnimations:@"flipping view" context:nil];
[UIView setAnimationDuration:1]; 
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; 
[UIView setAnimationTransition: UIViewAnimationTransitionFlipFromLeft forView:self.view cache:YES];
[self.view addSubview:test.view];
[UIView commitAnimations];
__________________
iOS Developerz
You Think, We Create...

http://iosdeveloperz.com/

View our latest apps
iOSDeveloperz is offline   Reply With Quote
Old 05-14-2011, 02:39 PM   #4 (permalink)
Registered Member
 
Join Date: May 2011
Posts: 19
s7162 is on a distinguished road
Thumbs up

Quote:
Originally Posted by iOSDeveloperz View Post
Try the following code. It is one of the animation style which you can perform
Code:
[UIView beginAnimations:@"flipping view" context:nil];
[UIView setAnimationDuration:1]; 
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; 
[UIView setAnimationTransition: UIViewAnimationTransitionFlipFromLeft forView:self.view cache:YES];
[self.view addSubview:test.view];
[UIView commitAnimations];
worked exactly how i wanted it to, thanks!!!
s7162 is offline   Reply With Quote
Reply

Bookmarks

Tags
animation, new nib, nib, xib

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: 374
6 members and 368 guests
doffing81, dre, iOS.Lover, Kirkout, MikaelBartlett, PlutoPrime
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,663
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, LezB44
Powered by vBadvanced CMPS v3.1.0

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