摘要:
在 iOS 7 以及更早之前的版本,MapView 顯示使用者位置不需實作到 CLLocationManager ,現在都要了。在 iOS 8 上編譯會出現以下 log :Trying to start MapKit location updates without prompting for lo... 阅读全文
摘要:
补充两个GCD代码,都是Xcode snippet里面提供的:1.Dispatch After主要用于延迟执行一些代码。例子:int64_t delayInSeconds = 1.0;dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW,... 阅读全文
摘要:
#import #import "FMDatabase.h"#import "FMDatabaseAdditions.h"@interface wiDBRoot : NSObject@property (retain, nonatomic) FMDatabase *DB;@property (ret... 阅读全文
摘要:
/** 在应用委托的方法didFinishLaunchingWithOptions中添加*/[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(reachabilityChanged:) name:kRe... 阅读全文