Saturday, 15 January 2011

How to impelment Phone call animation like iPhone's default Phone application does? -



How to impelment Phone call animation like iPhone's default Phone application does? -

my application has voip calling. in want implement animation iphone's default phone application when user clicks on phone call button on dial pad , animation done on end phone call button.

i have researched alot haven't find yet. help appreciated on topic.

right have implemented scaling animation below:

- (void)animatefadingout{ self.view.transform = cgaffinetransformmakescale(1.00, 1.00); [uiview beginanimations:nil context:nil]; [uiview setanimationduration:0.5]; [uiview setanimationdelegate:self]; [self performselector:@selector(push) withobject:nil afterdelay:0.35]; self.view.transform = cgaffinetransformmakescale(0.00, 0.00); //set transformation [uiview commitanimations]; } - (void)push { self.view.transform = cgaffinetransformmakescale(1.00, 1.00); // force navigation controloller callviewcontroller *objcallviewcontroller = [[callviewcontroller alloc] initwithnibname:@"callviewcontroller_iphone" bundle:nil]; [self sethidesbottombarwhenpushed:yes]; [self.navigationcontroller pushviewcontroller:objcallviewcontroller animated:no]; [objcallviewcontroller release]; [self sethidesbottombarwhenpushed:no]; [[appdelegate shared] settabhidden:true]; }

but not giving me exact animation default phone application has

here might seek if trying create animations.

cgrect movementframe = self.view.frame; //make position , size changes needed frame movementframe.origin.x = 0; [uiview animatewithduration:0.5 delay:0.0 options:uiviewanimationoptioncurveeaseout animations:^{ /* animation want commit go here apply movementframe info frame of item want animate */ //if wanted fade self.view.alpha = !self.view.alpha //simply says want reverse. self.view.frame = movementframe; //example of do. self.view.transform =cgaffinetransformmakescale(1.00, 1.00); } completion:^(bool finished) { //things happen 1 time animation finished [self push]; }];

this has not been tested case. hence not sure if help you, will. luck you.

*edit*

so reviewed animation on iphone , appears me series of animations happening @ once. you have presume uiactionsheet animating down. the top section overlay sliding y-axis. then have, haven't mastered yet, split in view animates x-axis in opposite directions cause split. finally have new view scale take frame effect.

i can't 100% how have done it, if going effort recreate this, start here.

iphone animation

No comments:

Post a Comment