2015年1月21日

Cocoa中对日期和时间的处理 NSCalendar (一)

摘要: NSCalendar用于处理时间相关问题。比如比较时间前后、计算日期所的周别等。1. 创建或初始化可用以下方法+ (id)currentCalendar;取得当前用户的逻辑日历(logical calendar)+ (id)autoupdatingCurrentCalendar;取得当前用户的逻辑日... 阅读全文

posted @ 2015-01-21 21:10 zhao_gw 阅读(233) 评论(0) 推荐(0) 编辑

2015年1月17日

iOS优秀博客收录

摘要: 唐巧王巍破船之家NSHipsterLimboy 无网不剩念茜的博客Xcode DevTed’s Homepagetxx’s blogKEVIN BLOG阿毛的蛋疼地亚庆的 BlogNonomori言无不尽Wonderffee’s BlogI’m TualatriXvclweiCocoabitnixz... 阅读全文

posted @ 2015-01-17 17:23 zhao_gw 阅读(141) 评论(0) 推荐(0) 编辑

八大排序(内容是转载链接)

摘要: http://blog.csdn.net/hguisu/article/details/7776068 阅读全文

posted @ 2015-01-17 17:00 zhao_gw 阅读(102) 评论(0) 推荐(0) 编辑

2015年1月15日

IOS8定位无效问题 - Jeedaa_IOS

摘要: 我的一个程序,以前都好用的,包括ios6,ios7,但是手机升级到iOS8后,xcode6编译运行,就不能正常工作了,也不报错。现象是进到设置里隐私-定位服务下面找到这个应用,设为总是允许,就可以正常获取地理信息,但是再重新编译运行,它又会变成这个未知状态。琢磨后想起来以前重装应用再调用定位服务时会... 阅读全文

posted @ 2015-01-15 14:06 zhao_gw 阅读(313) 评论(0) 推荐(0) 编辑

2015年1月14日

ios 里如何判断当前应用的定位服务是否可用

摘要: if([CLLocationManagerlocationServicesEnabled]&&([CLLocationManagerauthorizationStatus]==kCLAuthorizationStatusAuthorized||[CLLocationManagerauthorizat... 阅读全文

posted @ 2015-01-14 20:33 zhao_gw 阅读(237) 评论(0) 推荐(0) 编辑

2014年12月26日

MKMapView和MKMapViewDelegate

摘要: @interfaceMKMapView:UIView@property(nonatomic,assign)iddelegate;//Changingthemaptypeorregioncancausethemaptostartloadingmapcontent.//Theloadingdelegat... 阅读全文

posted @ 2014-12-26 18:24 zhao_gw 阅读(488) 评论(0) 推荐(0) 编辑

根据经纬度翻译成详细位置的各种方法

摘要: 首先苹果获取经纬度是if([CLLocationManagerlocationServicesEnabled]){//判断手机是否可以定位locationManager=[[CLLocationManageralloc]init];//初始化位置管理器[locationManagersetDeleg... 阅读全文

posted @ 2014-12-26 11:13 zhao_gw 阅读(905) 评论(0) 推荐(0) 编辑

iOS 根据经纬度反查 地名

摘要: 在iOS中定位自己的当前位置,知道经纬度很简单,然后有些时候要知道地名,apple也有了现成的api直接调用就可以(以下方法是iOS5.0以上的,现在基本都忽略了 iOS5.0以下的设备)#pragma mark -#pragma mark CLLocationManagerDelegate - (... 阅读全文

posted @ 2014-12-26 11:10 zhao_gw 阅读(1009) 评论(0) 推荐(0) 编辑

MapKit学习笔记

摘要: MapKit学习笔记1、概述插入MapView,设置Delegate(一般为Controller),Annotations记录兴趣位置点(AnnotationView用来显示兴趣位置点),annotation是可选的,选中的annotation会显示callout,用来显示信息。2、设置地图显示类型... 阅读全文

posted @ 2014-12-26 09:43 zhao_gw 阅读(171) 评论(0) 推荐(0) 编辑

2014年12月25日

解决Collection <__NSArrayM: 0xb550c30> was mutated while being enumerated

摘要: 当程序出现这个提示的时候,是因为你一边便利数组,又同时修改这个数组里面的内容,导致崩溃,网上的方法如下:123456789NSMutableArray*arrayTemp=xxx;NSArray*array=[NSArrayarrayWithArray:arrayTemp];for(NSDictio... 阅读全文

posted @ 2014-12-25 22:27 zhao_gw 阅读(246) 评论(0) 推荐(0) 编辑

导航