Does anyone know how to get an UIView animation with this option to perform with a subview? Whenever I try it, I'm only able to either flip the entire view or instantly flip (no animation). My goal is to get a UIImageView to show up not unlike how notifications pop up from the system.
Does anyone know how to get an UIView animation with this option to perform with a subview? Whenever I try it, I'm only able to either flip the entire view or instantly flip (no animation). My goal is to get a UIImageView to show up not unlike how notifications pop up from the system.
Post the code you're using now.
It sounds like you want your view to slide from the bottom, not flip. Is that right? And what target OS versions do you want to support? iOS 4 added block based animations, and the method
I don't have much experience using transitions. I usually roll my own animations using block-based animations, and sometimes even use CABasicAnimations if I need a more complex effect.
Until just now, I thought the method transitionFromView:toView:durationptions:complet ion was new in iOS 5, but I just found in the docs that it's supported in iOS 4. I'd suggest using that.
Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.
Oh one thing I forgot to mention. The base view is EAGLView. Yeah I know it's not encouraged for performance reasons, but I rather use something simple and quick, even if it drops my framerate for a second.
Oh one thing I forgot to mention. The base view is EAGLView. Yeah I know it's not encouraged for performance reasons, but I rather use something simple and quick, even if it drops my framerate for a second.
And what kind of transition do you want? Flip from bottom makes the whole view rotate in 3D, like a garage door with a pivot in the middle.
Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.
The same transition that notifications make on the screen in iOS 5.0.
There are lots of different facets to notifications in iOS 5. You mean the ones that slide down from the top of the screen, or the ones that roll into place at the very top of the screen? Describe what you want specifically based on what it does. "Like notifications in iOS 5" doesn't cut it.
This is my last try to figure out what you're talking about.
Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.
There are lots of different facets to notifications in iOS 5. You mean the ones that slide down from the top of the screen, or the ones that roll into place at the very top of the screen? Describe what you want specifically based on what it does. "Like notifications in iOS 5" doesn't cut it.
This is my last try to figure out what you're talking about.
The ones that roll into place at the very top of the screen.
The ones that roll into place at the very top of the screen.
I don't think Apple has published that transition. There are quite a few transitions that are private.
If I remember correctly, that transition causes a part of the screen to rotate as if its a wide, short multi-faced dial, where the pixels from the current view are printed onto one of the faces. Those pixels rotate away, and the new view rotates into place.
To do that, you'd have to do something like this:
Create a core graphics context that's the size of the view you want to rotate into place.
Capture the portion of the current screen that fills the frame of the new view into that context, and release the context.
Create a CALayer the size of the new view and install the pixels from step 2 as the contents of the layer. Add that new layer as a sublayer of the current layer.
Add the new view as a subview of the current view.
Get the layer of the new view.
Create animations that run at the same time that animate the pixels from the old view away, and the layer of the new view into place at the same time. Both rotations would need to rotate around the x axis, with a center of rotation that was shifted down into the screen (negative Z value). The fromValue of the transform in the animation for the new view's layer would start it rotated off-screen.
I think you might need to add a "container layer" that contained the layers for the pixel from the old view that you're rolling away, and the layer for the new view that you're rolling into place. You'd set the masksToBounds property on the container layer to true. That way, as you rotated the old pixels layer away, and the new pixels layer into place, only the parts that showed up in the container layer would be visible, kind of like the way you can only see a couple of the numbers on the rollers in a slot machine.
It would take some fairly tricky Core Animation Work, and a fair amount of fiddling, but it should be possible.
I could probably create this transition, but it might take me a day or two of full time work.
I've done a fair amount of work with custom Core Animation transitions lately, and gotten some cool effects. I may post some samples in a thread here.
Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.
I don't think Apple has published that transition. There are quite a few transitions that are private.
If I remember correctly, that transition causes a part of the screen to rotate as if its a wide, short multi-faced dial, where the pixels from the current view are printed onto one of the faces. Those pixels rotate away, and the new view rotates into place.
To do that, you'd have to do something like this:
Create a core graphics context that's the size of the view you want to rotate into place.
Capture the portion of the current screen that fills the frame of the new view into that context, and release the context.
Create a CALayer the size of the new view and install the pixels from step 2 as the contents of the layer. Add that new layer as a sublayer of the current layer.
Add the new view as a subview of the current view.
Get the layer of the new view.
Create animations that run at the same time that animate the pixels from the old view away, and the layer of the new view into place at the same time. Both rotations would need to rotate around the x axis, with a center of rotation that was shifted down into the screen (negative Z value). The fromValue of the transform in the animation for the new view's layer would start it rotated off-screen.
I think you might need to add a "container layer" that contained the layers for the pixel from the old view that you're rolling away, and the layer for the new view that you're rolling into place. You'd set the masksToBounds property on the container layer to true. That way, as you rotated the old pixels layer away, and the new pixels layer into place, only the parts that showed up in the container layer would be visible, kind of like the way you can only see a couple of the numbers on the rollers in a slot machine.
It would take some fairly tricky Core Animation Work, and a fair amount of fiddling, but it should be possible.
I could probably create this transition, but it might take me a day or two of full time work.
I've done a fair amount of work with custom Core Animation transitions lately, and gotten some cool effects. I may post some samples in a thread here.
Thanks Duncan. No need to do it for me of course. Do you think I'd get the code they use for that particular animation if I used a technical support incident?
Thanks Duncan. No need to do it for me of course. Do you think I'd get the code they use for that particular animation if I used a technical support incident?
No. Apple doesn't give out their code, unless it's officially sanctioned sample code. Apple's support engineers would get fired if they gave out OS internal code like a private view transition.
Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.
Thanks Duncan. No need to do it for me of course. Do you think I'd get the code they use for that particular animation if I used a technical support incident?
Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.
Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.
Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.