IOS 7 Weather APP Like Transition / Animations

I would like to implement IOS Weather APP, for example, a transition, ListView, touch a list item, which it expands to a detailed view, or pinch into a list, also expands to a detailed view.

Slide the left and right transitions. Please let me know how I can implement this.

Thanks at Advance.

+4
source share
2 answers

Here is some blog post that I found explaining the new transition API for iOS 7, go through it, read it.


In short lines, here are the steps

1 - Set the delegate transition to the controller

There are 3 types of transitions you can configure:

  • UINavigationController transitions push and pop
  • UItabBarController tab changed.
  • presentViewController:animated

:

  • UINavigationControllerDelegate
  • UITabBarControllerDelegate
  • UIViewControllerTransitioningDelegate

, - , :

  • pushViewController:animated: popViewControllerAnimated:
  • setViewControllers:animated:
  • presentViewController:animated

, "", .

, "", - , <UIViewControllerAnimatedTransitioning> ( <UIViewControllerInteractiveTransitioning> , , ). UIViewControllers ( )

2 - ''

, . viewController NSObject.

UINavigationController push pop.

3 - , ,

"" , , . :

  • - (NSTimeInterval)transitionDuration:(id<UIViewControllerContextTransitioning>)transitionContext:

  • - (void)animateTransition:(id<UIViewControllerContextTransitioning>)transitionContext . . ,

  • - (void)animationEnded:(BOOL)transitionCompleted .


"origin" "target" UIView (, , !)

, , "" . ( UITableVIewDelegate UICollectionViewDelegate didSelect), , THAT, "push", "pop" "presentViewController", .

+7

, , api.

, , :

https://github.com/chefnobody/Colors

, Ash Furrow @Teehan + Lax: http://www.teehanlax.com/blog/custom-uiviewcontroller-transitions/ :

, / , , ( "" "), -animateTransition: , . , ( " ") , ( , ), , , , .

, InteractionController, . , , , Furrow , .

0

All Articles