2
を変形させる:cgaffinetransformmakescaleとcgaffinetransformmakerotationを使用して、私はシンプルなUIViewの持っている私の見解
UIView *view = [[UIView alloc] initWithFrame:CGRectMake(100, 100, 100, 100)];
view.backgroundColor = [UIColor greenColor];
[self.view addSubview:view];
self.someView = view;
をそれから私はこの
[UIView animateWithDuration:10
delay:1
options:UIViewAnimationOptionCurveEaseInOut
animations:^{
self.someView.center = CGPointMake(CGRectGetWidth(self.view.bounds) - CGRectGetWidth(self.someView.frame)/2, 150);
CGAffineTransform transform = CGAffineTransformMakeRotation(M_PI);
self.someView.transform = CGAffineTransformScale(transform, 2, 0.5);
}
completion:^(BOOL finished) {
}];
ながら、この単純なアニメーション、が変形して実行されます。私が知っている限り、それは回転し、サイズを変更する必要があります。なぜそれが起こっているのか理解できません。どうすれば修正できますか?
ありがとうございました