获取设备相关信息
光速之年
Talk is cheap. Show me the code
展开
-
IOS-路径大全
//==============================================================================// 资源目录NSString *defaultDBPath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:filename];转载 2015-05-04 16:23:31 · 350 阅读 · 0 评论 -
获取获取手机的型号,系统版本,软件名称,软件版本
应用程序的名称和版本号等信息都保存在mainBundle的一个字典中,用下面代码可以取出来。NSDictionary* infoDict =[[NSBundle mainBundle] infoDictionary];NSString* versionNum =[infoDict objectForKey:@"CFBundleVersion"];NSString*appName =[info原创 2015-05-05 15:27:09 · 671 阅读 · 0 评论