![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS_系统类库
c349126799
这个作者很懒,什么都没留下…
展开
-
NSTimeZone小结
NSDate *date = [NSDate date]; NSLog(@"date:%@",date); //系统时区 NSTimeZone *zone = [NSTimeZone systemTimeZone]; NSData *data = [zone data]; NSLog(@"data:%@",data); //时间缩转载 2014-08-28 18:02:44 · 4163 阅读 · 0 评论 -
判断网络是否可用
//-判断当前网络是否可用 +(BOOL) isNetworkEnabled { BOOL bEnabled = FALSE; NSURL *url = [NSURL URLWithString:@"https://api.leancloud.cn"]; NSURLRequest *request = [NSURLRequest requestWithURL原创 2015-01-23 14:59:14 · 528 阅读 · 0 评论