摘要: 首先,在controlller头文件中增加:NSTimer *timer;定时器变量。在实现代码中创建一个页号变量:#import "list_demoViewController.h"…int pageNo=1;在viewDidLoad方法中初始化定时器:- (void)viewDidLoad { timer=[NSTimer scheduledTimerWithTimeInterval:3 target:self selector:@selector(getResults) userInfo:nil repeats:YES]; }定时器间隔3秒,执行getResults 阅读全文
posted @ 2011-06-03 16:52 s80895304 阅读(197) 评论(0) 推荐(0) 编辑
摘要: http://www.voland.com.cn/the-effect-of-the-type-and-implement-for-iphone实现iphone漂亮的动画效果主要有两种方法,一种是UIView层面的,一种是使用CATransition进行更低层次的控制,第一种是UIView,UIView方式可能在低层也是使用CATransition进行了封装,它只能用于一些简单的、常用的效果展现,这里写一个常用的示例代码,供大家参考。[UIView beginAnimations:@"Curl"context:nil];//动画开始[UIView setAnimationD 阅读全文
posted @ 2011-06-03 16:47 s80895304 阅读(233) 评论(0) 推荐(0) 编辑
摘要: UIScrollView 原理http://www.cocoachina.com/bbs/read.php?tid-40965-page-1.htmlscroll view 原理//作者:禚来强 iphone开发*****:79190809 邮箱:zhuolaiqiang@gmail.com转帖请保留在滚动过程当中,其实是在修改原点坐标当手指触摸后, scroll view会暂时拦截触摸事件,使用一个计时器,假如在计时器到点后,没有发生手指移动事件,那么,scroll view发送tracking events到被点击的subview假如在计时器到点前,发生了移动事件,那么 scroll vi 阅读全文
posted @ 2011-06-03 16:18 s80895304 阅读(212) 评论(0) 推荐(0) 编辑