StackOverflowhttp://stackoverflow.com/a/7059499Question:I have aUIScrollViewthat has a series of labels which are rapidly updating numbers (every .06 ...
                            
                            
                                分类:
移动开发   时间:
2014-07-07 22:02:50   
                                阅读次数:
330
                             
                    
                        
                            
                            
                                先吐槽一下这个标题,空格略蛋疼,不像中文,但是不写空格看上去则更诡异,求解决方案……NSTimer会retain它的target,这样如果在控制器当中定义一个NSTimer,target指定为self,则会引起循环引用。解决方案和防止block引用self一样,第一步需要把NSTimer的操作封装到...
                            
                            
                                分类:
其他好文   时间:
2014-07-06 14:44:21   
                                阅读次数:
141
                             
                    
                        
                            
                            
                                - (void)timerFireMethod:(NSTimer*)theTimer//弹出框
{
    UIAlertView *promptAlert = (UIAlertView*)[theTimer userInfo];
    [promptAlert dismissWithClickedButtonIndex:0 animated:NO];
    promptAlert =NULL...
                            
                            
                                分类:
移动开发   时间:
2014-06-27 09:21:00   
                                阅读次数:
219
                             
                    
                        
                            
                            
                                tableview 滑动导致 NSTimer和delegate 回调停止 解决办法// request回调NSURLRequest*request=...NSURLConnection*connection=[[NSURLConnectionalloc] ...
                            
                            
                                分类:
其他好文   时间:
2014-06-22 23:51:14   
                                阅读次数:
233
                             
                    
                        
                            
                            
                                本课主要介绍UIImageview、NSTimer的使用,并介绍了一种动画实现方式。
本教程摒弃枯燥的语法和知识讲解,全是有趣有料的项目实战!
 
视频优酷链接:v.youku.com/v_show/id_XNzI4NDkxNjg0.html
高清视频下载:pan.baidu.com/s/1mgp3kP6...
                            
                            
                                分类:
移动开发   时间:
2014-06-22 18:29:24   
                                阅读次数:
228
                             
                    
                        
                            
                            
                                当进入页面时,定时器是打开的。当离开页面时,定时器会关掉。直接上代码。.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
                             
                    
                        
                            
                            
                                1.NSRunLoop是IOS消息机制的处理模式NSRunLoop的主要作用:控制NSRunLoop里面线程的执行和休眠,在有事情做的时候使当前NSRunLoop控制的线程工作,没有事情做让当前NSRunLoop的控制的线程休眠。2.NSRunLoop 
就是一直在循环检测,从线程start到线程en...
                            
                            
                                分类:
其他好文   时间:
2014-06-09 00:55:40   
                                阅读次数:
212
                             
                    
                        
                            
                            
                                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