摘要:
NSString*sessionId =@"123"; NSUserDefaults*defaults = [NSUserDefaultsstandardUserDefaults]; [defaultssetObject:sessionIdforKey:@"sessionID"]; [defaultssynchronize]; NSString*value; value = [defaultsobjectForKey:@"sessionID"];//获取值SavingNSUserDefaults *prefs = [NSUserDef 阅读全文
摘要:
1.获取app的info.plist详细信息版本号:Bundle version NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"];应用标识:Bundle identifierNSString *bundleId = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"];应用名称:Bundle display nameNSS 阅读全文
摘要:
#include <objc/runtime.h>+ (NSArray *)findAllOf:(Class)defaultClass{ int count = objc_getClassList(NULL, 0); if (count <= 0) { @throw@"Couldn't retrieve Obj-C class-list"; return [NSArray arrayWithObject:defaultClass]; } NSMutableArray *output = [NSMutableArray arrayWithObject 阅读全文
摘要:
Google Maps SDK 使用介绍https://developers.google.com/maps/documentation/ios/start按照资料介绍,step by step,so you can!!第一步,下载Google Maps SDK for iOShttps://developers.google.com/maps/documentation/ios/start#getting_the_google_maps_sdk_for_ios第二步 获取Google Maps API Keyhttps://developers.google.com/maps/documen 阅读全文