I am developing a cocoa app and want to be able to click a button in one view in my NSCollywood View details Flip open and position in the center of the screen as in iPhoto 09 When you click "i" in the lower right corner of a photo, the photo "flows" and increases, to reveal information about the picture The window is centered on
I think they are using core animation to achieve this. I'm seeing an example of Lemar Flip, but when I try to modify the code in the animation, it throws the flip.
Here is the status code that I - (IBAction) flip: (ID) sender; Code of Limurflip:
... [Katranction start]; {NSSize supersize = contentView.frame.size; // Window content view size NSSize subsize = frontView.frame.size; // The size of the view we are flipping out (! FrontViv.Hihad) {// In the middle of the window [[Backup animator] Setframe audio: NSMKpoint ((Superses. Width / 2) - (SubSys with / 2 )), (Supersize.height / 2) - (subsize.height / 2)); [[Front Weave Animator] Set Framework: NSMKpoint ((Superses. Width / 2) - (Subs.s.with / 2), (Superscore. Highlight / 2) - (Subkeys High / 2)); } Else {// Return the view at the point of origin [[BackAvive Animator] SetfarmAgreen: NSMKpoint (0, 0)]; [[Front Weave Animator] Set Framework: NSMKpoint (0, 0)]; } [Hidden Layer Admnation: [Half Flip Animation with Duration: Flip Duri Frant: NO]: @ "Flip Group"]; [VisibleLayer addAnimation: [Self-Flip Animation Withdrawal: Flip Discovery Frontend: Yes] is for: @ "Flip Group"]; } [Catereration commission]; ...
How to combine this kind of animation or how to do some rules?
instead
[[backvideo animator] set frame assign:]; [[Front Weave Animator] SetframeAgreen:];
You want
[hiddenLayer setPosition:]; [VisibleLayer set status:];
You would like to zoom the integration value, perhaps using a CABasicAnimation
Comments
Post a Comment