怎么使用自定义segue,实现波纹跳转
2014-07-28 17:50
435 查看
modal无法实现,push可能能够实现。
dismiss方法
CustomSegue
-(void)perform{
CATransition* animation = [CATransition
animation];
[animation
setDuration:0.5f];
[animation setType:@"rippleEffect"];//波纹效果
@“rippleEffect”
[animation setTimingFunction:[CAMediaTimingFunction
functionWithName:kCAMediaTimingFunctionEaseOut]];
[[[self.destinationViewController
view] layer]
addAnimation:animation
forKey:@"transition"];
[[self
sourceViewController] presentViewController:self.destinationViewController
animated:NO
completion:Nil];
}
modal
presentModalViewController:animated:completion:^(void){ //code };dismiss方法
dismissModalViewControllerAnimated: // 将要废弃,不赞成继续使用 dismissViewControllerAnimated:completion:
CustomSegue
-(void)perform{
CATransition* animation = [CATransition
animation];
[animation
setDuration:0.5f];
[animation setType:@"rippleEffect"];//波纹效果
@“rippleEffect”
[animation setTimingFunction:[CAMediaTimingFunction
functionWithName:kCAMediaTimingFunctionEaseOut]];
[[[self.destinationViewController
view] layer]
addAnimation:animation
forKey:@"transition"];
[[self
sourceViewController] presentViewController:self.destinationViewController
animated:NO
completion:Nil];
}
push
相关文章推荐
- Android 开发中使用Fragment跳转到下一个Fragment(使用add方法),并实现返回键和自定义返回键。
- 使用自定义 URL 实现控制器之间的跳转-b
- java实现阶乘的计算,抛出异常不会,怎么使用标号跳转,需要帮解决一下
- iOS使用自定义URL实现控制器之间的跳转
- iOS开发--iOS使用自定义URL实现控制器之间的跳转(DCURLRouter组件)
- iOS中使用storyboard实现页面跳转,Segue详解及简单的数据传递
- iOS使用自定义URL实现控制器之间的跳转
- Android中水波纹使用之自定义视图实现
- iOS使用自定义URL实现控制器之间的跳转
- 在Storyboard中使用自定义的segue来实现动画过渡
- 使用storyboard 中跳转到自定义xib中实现
- iOS使用自定义URL实现控制器之间的跳转
- PPT中使用控件做链接实现跳转
- vc中怎么使用SendMessage自定义消息函数
- 使用Gridview和ObjectDataSource轻松实现自定义分页
- 使用Gridview和ObjectDataSource轻松实现自定义分页
- 使用VBA在Excel中实现自定义的Sum函数
- 使用Gridview和ObjectDataSource轻松实现自定义分页
- 使用委托在用户自定义控件中实现事件响应
- 使用Gridview和ObjectDataSource轻松实现自定义分页