iOS缩放切换类库:ZoomTransition

分享到:
ZoomTransition 是导航栏中用于交互式缩放切换显示视图控件的类库,使用Swift语言编写,非常易于使用,切换效果模仿 iOS 7 和 iOS 8 照片应用,支持缩小,旋转和 pan 手势。

To add to your app, simply create a ZoomTransition by passing the current NavigationController Then set the ZoomTransition object be the NavigationController delegate

if let navigationController = self.navigationController {
self.animationController = ZoomTransition(navigationController: navigationController)
}
self.navigationController?.delegate = animationController
// present view controller
let imageViewController = ImageViewController(nibName: "ImageViewController", bundle: nil)
self.navigationController?.pushViewController(imageViewController, animated: true)
Finally, you must implement the ZoomTransistionProtocol on both the presenting and the presented view controllers so the ZoomTransition knows which views to transition between
func viewForTransition() -> UIView {
return imageView
}
   iOS缩放切换类库:ZoomTransition
来自:http://www.sunhe.info/2014/2970.html

项目主页:http://www.open-open.com/lib/view/home/1413944852294

昵    称:
验证码:

相关文档: