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 08-16-2010, 07:28 PM   #1 (permalink)
Registered Member
 
Join Date: Jan 2010
Posts: 6
pingux is on a distinguished road
Default Transitions between different screens

Hi all,

Im from argentina so my english is not good.

I want to have several different screens. Each screen will be different and have different options and methods.

Currently, i work with:

ViewController.m
Code:
[self presentModalViewController:SecondViewController animated:YES];
When i want to back:

SecondViewController.m
Code:
[self dismissModalViewControllerAnimated:YES];
It works OK but i dont like transitions between views.

I've seen some free apps with transitions differents, for example: Catcha Mouse, Dots Free, Unblock me free, tap tap ants.

How i do those transitions? any example?

Thanks
pingux is offline   Reply With Quote
Old 08-16-2010, 07:58 PM   #2 (permalink)
Code before baby wakes up
 
RobotWoods's Avatar
 
Join Date: Sep 2009
Posts: 189
RobotWoods is on a distinguished road
Default

modalTransitionStyle

UIModalTransitionStyleCoverVertical
UIModalTransitionStyleFlipHorizontal
UIModalTransitionStyleCrossDissolve
UIModalTransitionStylePartialCurl

you set that right before presenting the controller

from the sample code:
Code:
MusicViewController *controller = [[MusicTableViewController alloc] initWithNibName: @"MusicTableView" bundle: nil];
        controller.delegate = self;
        
        controller.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
        
        [self presentModalViewController: controller animated: YES];
        [controller release];
RobotWoods is offline   Reply With Quote
Old 08-16-2010, 08:09 PM   #3 (permalink)
Registered Member
 
Join Date: Jan 2010
Posts: 6
pingux is on a distinguished road
Default

Quote:
Originally Posted by RobotWoods View Post
modalTransitionStyle

UIModalTransitionStyleCoverVertical
UIModalTransitionStyleFlipHorizontal
UIModalTransitionStyleCrossDissolve
UIModalTransitionStylePartialCurl

you set that right before presenting the controller

from the sample code:
Code:
MusicViewController *controller = [[MusicTableViewController alloc] initWithNibName: @"MusicTableView" bundle: nil];
        controller.delegate = self;
        
        controller.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
        
        [self presentModalViewController: controller animated: YES];
        [controller release];
Ok, i knew it. The games i said use another kind of transitions. I think they use "QuartzCore/QuartzCore.h" but i dont know how to do it.
pingux 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: 354
4 members and 350 guests
givensur, linkmx, Newbie123, PlutoPrime
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,894
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

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