iphone - Combining animations on UIView and subiview's CALayer? -


i'm animating uiview transition so:

uiview *areaview = areacontroller.view; [areacontroller viewwillappear:yes];  uiview *subview = self.customview.subview; uibutton *button = customview.button; // button subview of customview.subview  [uiview beginanimations:nil context:null]; [uiview setanimationduration:1];  [uiview setanimationtransition:uiviewanimationtransitionflipfromright forview:subview cache:yes];  [button removefromsuperview]; [subview addsubview:areaview]; [areacontroller viewdidappear:yes];   [uiview commitanimations];  [self.areacontroller start];  // areacontroller starts animation of calayer, see below 

this flips new view, areaview "behind" button fine, in areaview there's subview animating it's calayer:

catransform3d rotate = catransform3dmakerotation(angle, 1, 0, 0);  cabasicanimation *animation = [cabasicanimation animationwithkeypath:@"transform"];  animation.tovalue = [nsvalue valuewithcatransform3d:rotate]; animation.duration = .08; animation.delegate = self; animation.fillmode = kcafillmodeforwards; animation.removedoncompletion = no;     [layer addanimation:animation forkey:@"transform"]; 

my question is:

how make both these animations animate in parallell?

currently, animation on calayer starts when calling [self.areacontroller start];, result not visible until transition on superview finished. should somehow use animation group uiview's layer?

i think can't these @ same time. can do first animation using catransform3d, occur @ same time. old post though maybe you've solved issue.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -