CGAffineTransformMakeScale这个方法咱们之前常用,可是在IOS8上出现问题了ios
[UIView animateWithDuration:0.3 animations:^{xcode
bgView.frame=CGRectMake(0,0-(y/2), WIDTH, HEIGHT);code
logoImageView.transform=CGAffineTransformMakeScale(0, 0);orm
}];animation
ios8上面若是是0的话,则会产生忽然消失的状况,须要修改代码为0.1才能够,正确代码以下 :it
[UIView animateWithDuration:0.3 animations:^{io
bgView.frame=CGRectMake(0,0-(y/2), WIDTH, HEIGHT);form
logoImageView.transform=CGAffineTransformMakeScale(0.1, 0.1);transform
//xcode6上面须要改成0.1才有效果,0则忽然消失ios8
}];