iphone - UIImage animations don't work in a view pushed without animation -
iphone - UIImage animations don't work in a view pushed without animation -
i've got view controller view contains uiimageview
animation:
//animationviewcontroller::viewdidload event: var ctlanimations = new uiimageview(); ctlanimations.animationimages = list.toarray(); //<--list contains uiimages ctlanimations.animationduration = 1.0 * list.count; ctlanimations.startanimating(); this.add(ctlanimations);
this works perfectly: when force animationviewcontroller
onto navigation stack, displays , animates uiimage
.
but need show animationviewcontroller
custom animated transition:
var transition = catransition.createanimation (); transition.duration = 0.3f; transition.timingfunction = camediatimingfunction.fromname(camediatimingfunction.easeineaseout); transition.type = catransition.transitionfade; this.view.layer.addanimation (transition, "fade"); //viewcontroller beingness pushed animated=false, because have custom animation base.pushviewcontroller (viewcontroller, false); this.view.layer.removeanimation("fade");
this also works perfectly, in new view transitions place using specified custom animation.
but when force animationviewcontroller
onto stack using animated transition, displays the animation doesn't run. instead, shows first frame of animation (the first image in list), , doesn't run it.
so, transition breaking ability animate uiimage
in new view controller, can't figure out it.
update: i've noticed if tap navigationcontroller's button, move off of button , allow go (so don't go back), animation starts playing!
try putting animating bit in viewdidappear rather viewdidload. also, seek using breakpoints , nslogs follow happens after animation, starting viewdidload , viewdidappear. seek having animation repeat forever can see if has ever been animating or not.
iphone ios monotouch
Comments
Post a Comment