interface
subview を含むビューがありますtouchWheel
。最小化ボタンをクリックするとinterface
、変換を実行してビューを画面の右下隅に送信したいと思います。touchWheel
問題は、ビューを「デタッチ」して、後ろに続く親ビューとは別にコーナーに送信したいということですinterface
(実際にはフェードアウトします)。
これを試すと、問題が発生します。私のアニメーションは最初touchWheel
は正常に動作し、必要に応じて下隅に向かって送信されます。touchWheel
が目的地の半分くらいになったら、それがついて来るようにアニメーション化interface
しますtouchWheel
。
interface
アニメーションを開始すると、コースを制御および変更するように見えtouchWheel
ますtouchWheel
。
親ビューであるため、interface
まだ制御を保持しているようです。touchWheel
- (void)hideInterfaceButtonClicked : (id) sender
{
[[NSNotificationCenter defaultCenter] postNotificationName:@"RemoveGrey" object:self];
//Remove Views & transform
[touchWheel removeViews];
interfaceHidden = YES;
//Send Interface to corner
[UIView animateWithDuration:1.25
delay:0.0
options:UIViewAnimationCurveEaseIn
animations:^{
// Move to the right
CGAffineTransform translateInterface = CGAffineTransformMakeTranslation(437,200);
// Scale
CGAffineTransform scale = CGAffineTransformMakeScale(0.135,0.135);
// Apply them to the view
self.transform = CGAffineTransformConcat(scale, translateInterface);
self.alpha = 0.0;
} completion:^(BOOL finished) {
NSLog(@"Animation Has Stopped");
[[NSNotificationCenter defaultCenter] postNotificationName:@"hiddenInterfaceViewNeeded" object:self]; //after MoveView finishes
}];
}
touchWheel
以外のもののサブビューを作成interface
すると、さらに複雑になる他の問題が発生します。
この問題を回避する方法はありますか? どんなヒントでも大歓迎です:)