Sunday 15 June 2014

ios - Center of second animation not using new position -


I'm having a problem with running two animations in iOS. First, by changing the frame in the first animation set, the bottom of the screen I am trying to move the image upwards from the part, and after completion I am trying to increase the length of the object by changing the scale. But for some reason the first animation is over after the object goes back to the original position at the bottom of the screen and there is a growing change from the screen. Can anyone help me with this? Thanks in advance for your help, this is my code:

  CGFF fullview = CGRactam (59, 102, 650, 150); CGRact iconview = SegretMake (59, 102, 290, 150); CGRT text view = CGRactack (34 9, 102, 360, 150); [_profileBtn set enabled: FALSE]; [_profileBtn setHidden: TRUE]; [UIView animateWithDuration: 1 animation: ^ {// following animate: _profileIcon.frame = iconView; // New Locations _profile.txt.frame = Go to TextView; // go to the new location _profileBackground.frame = fullview; } Closing: ^ (BOOL Finish) {[UIView animateWithDuration: 1 Animation: ^ {// Following Animate: _profileBackground.transform = CGAffineTransformMakeScale (1, 5.64); }]; }];    

Check out the UIView Transform property specifically, the frame of the object What happens, if you adjust the transformations, I think instead of performing the second animation on the transformation of UIView, you should apply it to the scale of the change in its layer.

No comments:

Post a Comment