iOS的APP的应用开发的过程中,有时为了bug跟踪或者获取用反馈的需要自动收集用 户设备、系统信息、应用信息等等,这些信息方便开发者诊断问题,当然这些信息是用户的非隐私信息,是通过开发api可以获取到的。那么通过那些api可以 获取这些信息呢,iOS的SDK中提供了UIDevice,NSBundl...
分类:
移动开发 时间:
2015-07-04 16:42:13
阅读次数:
135
import?UIKit
class?FormController:?UIViewController?{
????
????override?init(nibName?nibNameOrNil:?String?,?bundle?nibBundleOrNil:?NSBundle?)?{
?????????super.init(nibN...
分类:
编程语言 时间:
2015-06-25 12:35:10
阅读次数:
107
//方法一NSString *appDomain = [[NSBundle mainBundle] bundleIdentifier];[[NSUserDefaults standardUserDefaults] removePersistentDomainForName:appDomain]; /...
分类:
其他好文 时间:
2015-06-16 16:12:01
阅读次数:
102
采用这个方法UIImageWriteToSavedPhotosAlbum将大量图片保存到模拟器 ? NSArray *strFileArr = [[NSBundle mainBundle] URLsForResourcesWithExtension:@"jpg" subdirectory:nil]; ?? ? ? ? for (int i = 0...
分类:
其他好文 时间:
2015-06-13 18:53:09
阅读次数:
157
1.拿到mainBundle下Photos文件夹的路径NSString *photosDirectory= [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Photos"];2.遍历文件夹PhotosNSA...
分类:
移动开发 时间:
2015-06-11 22:34:15
阅读次数:
133
原文地址:http://blog.csdn.net/gf771115/article/details/7718403NSError *error;// NSString *path = [[NSBundle mainBundle] pathForResource:@"testxml" ofType....
分类:
移动开发 时间:
2015-06-05 15:44:25
阅读次数:
203
NSString* localPath = [[NSBundle mainBundle] pathForResource:@"1" ofType:@"jpg"]; NSURL* fileUrl = [NSURL fileURLWithPath:localPath]; CIImage* ...
分类:
移动开发 时间:
2015-06-04 13:42:04
阅读次数:
257
1.读取图片NSString *path = [[NSBundle mainBundle] pathForResource"icon" ofType"png"];myImage = [UIImage imageWithContentsOfFile:path]; 2.更改cell选中的背景 UIVie...
分类:
移动开发 时间:
2015-06-02 21:34:29
阅读次数:
145
解析Json数据1 //加载.json文件2 NSString *path = [[NSBundle mainBundle]pathForResource:@"product.json" ofType:nil];3 //根据路径加载json文件到nsdata中4 NSData *data = [NS...
分类:
移动开发 时间:
2015-06-02 15:01:57
阅读次数:
153
- (NSArray *)groups{ if (_groups == nil) { // NSArray *dictArray = [NSArray arrayWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"friend...
分类:
移动开发 时间:
2015-05-31 01:18:55
阅读次数:
126