0
以下代碼將破壞框架(這將是巨大的),如iOS 8.1.3中所示。將變換視圖添加到UIWindow或UIView後出現錯誤框架
someView.layer.transform = CGAffineTransformMakeScale(0.001f, 0.001f);
[[[[UIApplication sharedApplication] keyWindow].subviews lastObject] addSubview:someView];
[UIView animateWithDuration:0.3f animations:^{
someView.transform = CATransform3DIdentity;
}];
刪除轉換並將其替換爲簡單的幀移動動畫效果很好。爲什麼?