NSDictionary *result = value[@"data"]; if (![result isKindOfClass:[NSDictionary class]]) { NSLog(@"data 不是字典"); if ([result isKindOfClass:[NSString cl ...
                            
                            
                                分类:
移动开发   时间:
2017-06-15 18:14:47   
                                阅读次数:
218
                             
                         
                    
                        
                            
                            
                                OC - 时间日期类NSDate //NSDate 时间日期类 NSDate 二进制数据流 { //1.获取当前时间 零时区的时间 //显示的是格林尼治的时间: 年-月-日 时:分:秒:+时区 NSDate *date = [NSDate date]; NSLog(@"当前零时区时间 %@", da ...
                            
                            
                                分类:
其他好文   时间:
2017-06-15 12:51:59   
                                阅读次数:
188
                             
                         
                    
                        
                            
                            
                                Block简介 Block使用场景,可以在两个界面的传值,也可以对代码封装作为参数的传递等。用过GCD就知道Block的精妙之处。 Block是一种比较特殊的数据类型。它可以保存一段代码,在合适的时候取出来调用。 Block的修饰 ARC情况下 1.如果用copy修饰Block,该Block就会存储 ...
                            
                            
                                分类:
其他好文   时间:
2017-06-14 13:16:30   
                                阅读次数:
172
                             
                         
                    
                        
                            
                            
                                1 2 UIScreen *currentScreen = [UIScreen mainScreen]; 3 4 NSLog(@"applicationFrame.size.height = %f",currentScreen.applicationFrame.size.height); 5 6 N ...
                            
                            
                                分类:
移动开发   时间:
2017-06-12 19:54:24   
                                阅读次数:
179
                             
                         
                    
                        
                            
                            
                                    S3C6410X supports 32-bit physical address field and that address field can be seperated into two parts, one partis for memory, the other part is for p ...
                            
                            
                                分类:
其他好文   时间:
2017-06-12 14:46:30   
                                阅读次数:
356
                             
                         
                    
                        
                            
                            
                                    第三章 图形初阶 1.使用图形 pdf("XXX.pdf")#保存pdf文件 ………… dev.of() dev.new()#新的图形窗口 2.一个简单的列子 3.图形参数 opar=par(no.readonly=TRUE)#生成一个可以修改当前图形的参数列表 par(lty=2,pch=17)  ...
                            
                            
                                分类:
编程语言   时间:
2017-06-10 22:38:00   
                                阅读次数:
193
                             
                         
                    
                        
                            
                            
                                - (void)scrollViewDidScroll:(UIScrollView *)scrollView { NSLog(@"開始滚动"); int currentPostion = scrollView.contentOffset.y; if (currentPostion - _lastPo ...
                            
                            
                                分类:
其他好文   时间:
2017-06-07 18:41:39   
                                阅读次数:
245
                             
                         
                    
                        
                            
                            
                                    //NSFileManager - (void)viewDidLoad { [super viewDidLoad]; NSLog(@"%@",NSHomeDirectory()); NSString *docPath = [NSSearchPathForDirectoriesInDomains(NS ...
                            
                            
                                分类:
其他好文   时间:
2017-06-07 00:55:25   
                                阅读次数:
324
                             
                         
                    
                        
                            
                            
                                NSString *dateStr=@"2012-05-17 11:23:23"; NSLog(@"dateStr=%@",dateStr); NSDateFormatter *format=[[NSDateFormatter alloc] init]; [format setDateFormat: ...
                            
                            
                                分类:
其他好文   时间:
2017-06-06 14:25:39   
                                阅读次数:
141
                             
                         
                    
                        
                            
                            
                                    [NSDate date]获取的是GMT时间,要想获得某个时区的时间,以下代码可以解决这个问题 NSDate *date = [NSDate date]; NSTimeZone *zone = [NSTimeZone systemTimeZone]; NSInteger interval = [zo ...
                            
                            
                                分类:
其他好文   时间:
2017-06-06 12:59:08   
                                阅读次数:
125