设为首页 加入收藏

TOP

【代码笔记】iOS-首页3张图片变化(二)
2017-10-13 10:28:32 】 浏览:6313
Tags:代码 笔记 iOS- 首页 图片 变化
exchangeSubviewAtIndex:1 withSubviewAtIndex:2]; timer = [NSTimer scheduledTimerWithTimeInterval:11.0 target:self selector:@selector(changeView2) userInfo:nil repeats:NO]; } -(void)changeView2 { imageView3.frame = CGRectMake(0, 0, 520, 660); [self change1]; CATransition * transition = [CATransition animation]; transition.duration = 2.0;//间隔时间 transition.timingFunction = UIViewAnimationCurveEaseInOut;//减缓动画 transition.type = kCATransitionFade;//各种效果 transition.subtype = kCATransitionFromRight; transition.delegate = self;//代理,自带方法,动画的代理都不用协议 [self.view.layer addAnimation:transition forKey:nil]; [self.view exchangeSubviewAtIndex:2 withSubviewAtIndex:0]; timer = [NSTimer scheduledTimerWithTimeInterval:11.0 target:self selector:@selector(changeView) userInfo:nil repeats:NO]; }
复制代码

 

 

 
 
首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇Xcode插件VVDocumenter Alcatraz .. 下一篇【原】iOS学习之第三方-AFNetwork..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目