iphone - How to add an animation to the UIView in viewDidAppear? -
I tried to add an animation to see the diodes and viewfinder, but this does not work:
- (zero) viewDeadapp: (BOOL) animated {[UIView startAnimations: @ "transition" reference: NULL]; [UIView Set Animation Transition: 110 forView: self.view Cache: Yes]; [UIView commitAnimations]; }
Why?
I had one problem and I think I found a solution on this.
When you see that DDAP calls you, you do not see anything on the screen (despite the name), but almost then you can use an activate: with delay or an NSTM You can launch your animation. The delay can be just 0.1 and your animation will only appear when the screen is shown.
- (zero) viewDidAppear: (BOOL) animated ([super viewDidAppear: animated]; NSLog (@ "view appeared!"); [Self display selector: @synlector (with encoded) Object: After zero: 0.1F];} - (zero) animation code {// you animation code}
Comments
Post a Comment