tableview 滑动导致 NSTimer和delegate 回调停止 解决办法// request回调NSURLRequest*request=...NSURLConnection*connection=[[NSURLConnectionalloc] ...
分类:
其他好文 时间:
2014-06-22 23:51:14
阅读次数:
233
当进入页面时,定时器是打开的。当离开页面时,定时器会关掉。直接上代码。.h部分#import @interface RootViewController : UIViewController{ //定义定时器 NSTimer *timer;}@end.m部分-(void)viewWill...
分类:
其他好文 时间:
2014-06-18 09:01:10
阅读次数:
170
ios:NSRunLoop1.NSRunLoop是消息机制的处理模式NSRunLoop的作用在于有事情做的时候使的当前NSRunLoop的线程工作,没有事情做让当前NSRunLoop的线程休眠2.nstimer默认添加到当前NSRunLoop中,也可以手动制定添加到自己新建的NSRunLoop的中[...
分类:
移动开发 时间:
2014-06-13 07:26:02
阅读次数:
288
方法一:-(void) viewDidLoad{[self
performSelectorInBackground:@selector(call1) withObject:nil];}-(void)
call1{timer1 = [NSTimer scheduledTimerWithTimeInte...
分类:
其他好文 时间:
2014-06-04 20:23:05
阅读次数:
228
head
代码。。Java代码#import@interfaceViewController:UIViewController{UIProgressView*progressview;UIProgressView*progressviewbar;NSTimer*timer;}@property(re...
分类:
移动开发 时间:
2014-06-04 19:55:32
阅读次数:
359
btn.enabled=NO;` NSTimer * notificationTimer =
[NSTimer scheduledTimerWithTimeInterval:10*60.0
target:selfselector:@selector(enable) userInfo:nil rep....
分类:
其他好文 时间:
2014-06-04 18:08:11
阅读次数:
199
主要的原理包括:
继承UIView ,重载drawrect和重载触摸事件
待实现的功能还有,路径数组保存等。
#import "testdrow.h"
@implementation testdrow
UIColor *pick_color;
int choose;
UIBezierPath *mpath ;
UIBezierPath *eraser_path;
NSTimer *myt...
分类:
移动开发 时间:
2014-06-03 00:20:36
阅读次数:
323
- (void)addTimer{ self.timer =
[NSTimerscheduledTimerWithTimeInterval:2.0target:selfselector:@selector(nextImage)
userInfo:nilrepeats:YES]; [[NSRunL.....
分类:
其他好文 时间:
2014-05-28 14:59:48
阅读次数:
231
NSTimer是不一定准时的,是有可能被delay的,每次间隔的时间是不一定一样的。A
repeating timer reschedules itself automatically based on the scheduled firing
time, not the actual firing...
分类:
其他好文 时间:
2014-05-26 10:03:30
阅读次数:
230
具体效果可下载“掌眼”古玩江湖进行测试:http://bbs.guwanch.comViewController.h@interface
ViewController : CDVViewController{ NSTimer *_timer; // 用于UIWebView保存图片 ...
分类:
移动开发 时间:
2014-05-25 08:47:16
阅读次数:
1202