AとBの2つのビューがあります。
A(Aframe)--------------->B(Bframe)------>C(cFrame)
アニメーションを実行したいのですが、AがAframeからCframeに移動します。しかし、Bでは、Aは隠されます
A(Aframe)------(non-hidden area)---------->B(Bframe)------(hidden area)-------->C(Cframe)
どうやってするか?本当にありがとう。
// I suppose viewA, viewB, viewC is subviews of self.view
UIView *viewA = ..., *viewB = ..., *viewC = ...;
[self.view bringSubviewToFront:viewA];
[UIView animateWithDuration:0.5 animations:^{
viewA.frame = viewC.frame;
} completion:^(BOOL finished) {
[self.view sendSubviewToBack:viewA];
}];