Check out this video at MLB At Bat. Basically, I just want to represent modalViewController using the UIModalPresentationFormSheet style and enlarge it from another view and then flip it. For example, when you click on a game on a scoreboard in an MLB application. Does anyone know how I can do this?
thanks
EDIT: my main view is almost the same setup as the MLB application. I use AQGridView and want the animation to AQGridView when the grid cell is pressed.
EDIT 2: I would also be open to drop the concept of a UIViewController and just use a simple UIView and then replicate the UIModalPresentationFormSheet style manually if that is easier.
EDIT 3: Well, forget to use the UIViewController to do this, since I have not received any answers, I assume this is not possible. My new question is how can I play the animation in a hosted video using only UIView ? Therefore, basically, the original representation should grow, move and flip everything at the same time.
EDIT 4: I think I have real animation, now my only problem is calculating the coordinates to feed into CATransform3DTranslate . My opinion should be animated pretty much the same as in the video. It should start from a different view and approach the center of the screen. Here, as I try to calculate the coordinates for the view that appears in the center:
CGPoint detailInitialPoint = [gridView convertPoint:view.frame.origin toView:detailView.frame.origin]; CGPoint detailFinalPoint = detailView.frame.origin;
gridView is a container view of my main view, which stores smaller grid elements. view is a specific mesh element from which we animate. And the detailView is the view that appears in the middle of the screen.
ios objective-c cocoa-touch ipad core-animation
edc1591
source share