码迷,mamicode.com
首页 >  
搜索关键字:nsbundle    ( 385个结果
iOS的UIDevice,NSBundle,NSLocale
iOS的APP的应用开发的过程中,有时为了bug跟踪或者获取用反馈的需要自动收集用 户设备、系统信息、应用信息等等,这些信息方便开发者诊断问题,当然这些信息是用户的非隐私信息,是通过开发api可以获取到的。那么通过那些api可以 获取这些信息呢,iOS的SDK中提供了UIDevice,NSBundl...
分类:移动开发   时间:2015-07-04 16:42:13    阅读次数:135
在swift下 代码加载xib
import?UIKit class?FormController:?UIViewController?{ ???? ????override?init(nibName?nibNameOrNil:?String?,?bundle?nibBundleOrNil:?NSBundle?)?{ ?????????super.init(nibN...
分类:编程语言   时间:2015-06-25 12:35:10    阅读次数:107
两种方法删除NSUserDefaults所有记录
//方法一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
iOS 文件操作相关
1.拿到mainBundle下Photos文件夹的路径NSString *photosDirectory= [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Photos"];2.遍历文件夹PhotosNSA...
分类:移动开发   时间:2015-06-11 22:34:15    阅读次数:133
iOS 用GDataXMLNode创建和解析XML
原文地址:http://blog.csdn.net/gf771115/article/details/7718403NSError *error;// NSString *path = [[NSBundle mainBundle] pathForResource:@"testxml" ofType....
分类:移动开发   时间:2015-06-05 15:44:25    阅读次数:203
iOS使用CoreImage处理图像40中可用的滤镜名称
NSString* localPath = [[NSBundle mainBundle] pathForResource:@"1" ofType:@"jpg"]; NSURL* fileUrl = [NSURL fileURLWithPath:localPath]; CIImage* ...
分类:移动开发   时间:2015-06-04 13:42:04    阅读次数:257
iOS常用代码总结
1.读取图片NSString *path = [[NSBundle mainBundle] pathForResource"icon" ofType"png"];myImage = [UIImage imageWithContentsOfFile:path]; 2.更改cell选中的背景 UIVie...
分类:移动开发   时间:2015-06-02 21:34:29    阅读次数:145
IOS中的JSON数据的解析
解析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
菜鸟ios开发
- (NSArray *)groups{ if (_groups == nil) { // NSArray *dictArray = [NSArray arrayWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"friend...
分类:移动开发   时间:2015-05-31 01:18:55    阅读次数:126
385条   上一页 1 ... 22 23 24 25 26 ... 39 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!