码迷,mamicode.com
首页 >  
搜索关键字:nsbundle    ( 385个结果
xib文件的使用
作用:xib文件可以用来描述某一块局部的UI界面xib加载1>NSBundle *bundel = [[NSBundle mainBundle] loadNibName:@"xxx.xib" owner:nil options:nil];这个方法会创建xib中所有对象,并且将对象按顺序方法objs数...
分类:其他好文   时间:2015-07-28 23:02:12    阅读次数:112
iOS 检查更新
1 #pragma mark - 检查更新 2 3 - (void)checkUpdateWithAPPID:(NSString *)APPID 4 { 5 //获取当前应用版本号 6 NSDictionary *appInfo = [[NSBundle mainBundle] ...
分类:移动开发   时间:2015-07-28 06:40:59    阅读次数:134
加载本地Html文件
NSString * resousePath = [[NSBundle mainBundle]resourcePath];         NSString * filePath = [resousePath stringByAppendingPathComponent:@"patient_agreement.html"];         NSString * htmlString = [[...
分类:Web程序   时间:2015-07-27 13:19:53    阅读次数:133
CSV解析
NSString *path = [[NSBundle mainBundle] pathForResource: @"type" ofType:@"csv"]; NSString* fileContents = [NSString stringW...
分类:其他好文   时间:2015-07-26 17:07:08    阅读次数:128
iOS开发NSBundle、UIImageView和UIButton总结
1.NSBundle1>一个NSBundle代表一个文件夹,利用NSBundle能访问对应的文件夹2>利用mainBundle就可以访问软件资源包中的任何资源3>模拟器应用程序的安装路径2.UIImageView和UIButton1>使用场合*UIImageView:如果仅仅是显示图片,不需要监听图...
分类:移动开发   时间:2015-07-26 17:06:58    阅读次数:110
iOS 自定义一个视图作为根视图
#import "myView.h"//使用这个myview来代替控制器自带的view@property(nonatomic,retain)myView *myview;- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *...
分类:移动开发   时间:2015-07-24 10:38:46    阅读次数:207
iOS 获取高速随机路径sandbox目录
NSLog(@"%@", NSHomeDirectory());//沙盒主目录 NSLog(@"%@", NSTemporaryDirectory());//砂箱tmp目录路径 NSLog(@"%@", [[NSBundle mainBundle] bundlePath]);//...
分类:移动开发   时间:2015-07-20 21:14:24    阅读次数:268
xml 数据的 DOM 解析方式
需要使用第三方工具#import "GDataXMLNode.h"@property (nonatomic, strong) NSMutableArray *xmlDOMArray;- (IBAction)XMLDOMButtonDidClicked:(UIButton *)sender { // 1、拿到 xml 文件的路径 NSString *path = [[NSBundle...
分类:其他好文   时间:2015-07-20 19:39:43    阅读次数:89
JSON 数据的系统解析
- (IBAction)jsonSystemButtonDidClicked:(UIButton *)sender { self.JSONArray = [NSMutableArray array]; // 1、拿到 json 文件的路径 NSString *path = [[NSBundle mainBundle] pathForResource:@"student" ofTy...
分类:Web程序   时间:2015-07-20 19:37:50    阅读次数:98
NSBundle/其他Bundle的获取
#define D_SharkItOffViewControllerBundleName @"SharkItOffViewController.bundle" //套装名称//其他nsbundle都是在[[NSBundle mainBundle] resourcePath]目录下 ...
分类:其他好文   时间:2015-07-18 12:14:36    阅读次数:112
385条   上一页 1 ... 20 21 22 23 24 ... 39 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!