i created the zooming animation in my ios application, its working fine in ios 6 devices, but when i run the same code on devices containing ios 5, its behaving differently, that is button (on which i put this effect) coming with stretching and delay effect. Can anyone please take a look on code and checkout what i'm mistaken.
Code
- (void) zoomEffect
{
self.transform = CGAffineTransformScale(CGAffineTransformIdentity, 0, 0);
[UIView animateWithDuration:0.3 animations:^{
self.transform = CGAffineTransformScale(CGAffineTransformIdentity, 1.3, 1.3);
} completion:^(BOOL finished){
[UIView animateWithDuration:0.3 animations:^{
self.transform = CGAffineTransformIdentity;
} completion:^(BOOL finished){
}];
}];
}
I had same "issue"... :)
Try to change this line
self.transform = CGAffineTransformScale(CGAffineTransformIdentity, 0, 0);
in
self.transform = CGAffineTransformScale(CGAffineTransformIdentity, 0.0001, 0.0001);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.