作用:xib文件可以用来描述某一块局部的UI界面xib加载1>NSBundle *bundel = [[NSBundle mainBundle] loadNibName:@"xxx.xib" owner:nil options:nil];这个方法会创建xib中所有对象,并且将对象按顺序方法objs数...
分类:
其他好文 时间:
2015-07-28 23:02:12
阅读次数:
112
1 #pragma mark - 检查更新 2 3 - (void)checkUpdateWithAPPID:(NSString *)APPID 4 { 5 //获取当前应用版本号 6 NSDictionary *appInfo = [[NSBundle mainBundle] ...
分类:
移动开发 时间:
2015-07-28 06:40:59
阅读次数:
134
NSString * resousePath = [[NSBundle mainBundle]resourcePath];
NSString * filePath = [resousePath stringByAppendingPathComponent:@"patient_agreement.html"];
NSString * htmlString = [[...
分类:
Web程序 时间:
2015-07-27 13:19:53
阅读次数:
133
NSString *path = [[NSBundle mainBundle] pathForResource: @"type" ofType:@"csv"]; NSString* fileContents = [NSString stringW...
分类:
其他好文 时间:
2015-07-26 17:07:08
阅读次数:
128
1.NSBundle1>一个NSBundle代表一个文件夹,利用NSBundle能访问对应的文件夹2>利用mainBundle就可以访问软件资源包中的任何资源3>模拟器应用程序的安装路径2.UIImageView和UIButton1>使用场合*UIImageView:如果仅仅是显示图片,不需要监听图...
分类:
移动开发 时间:
2015-07-26 17:06:58
阅读次数:
110
#import "myView.h"//使用这个myview来代替控制器自带的view@property(nonatomic,retain)myView *myview;- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *...
分类:
移动开发 时间:
2015-07-24 10:38:46
阅读次数:
207
NSLog(@"%@", NSHomeDirectory());//沙盒主目录 NSLog(@"%@", NSTemporaryDirectory());//砂箱tmp目录路径 NSLog(@"%@", [[NSBundle mainBundle] bundlePath]);//...
分类:
移动开发 时间:
2015-07-20 21:14:24
阅读次数:
268
需要使用第三方工具#import "GDataXMLNode.h"@property (nonatomic, strong) NSMutableArray *xmlDOMArray;- (IBAction)XMLDOMButtonDidClicked:(UIButton *)sender {
// 1、拿到 xml 文件的路径
NSString *path = [[NSBundle...
分类:
其他好文 时间:
2015-07-20 19:39:43
阅读次数:
89
- (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
#define D_SharkItOffViewControllerBundleName @"SharkItOffViewController.bundle" //套装名称//其他nsbundle都是在[[NSBundle mainBundle] resourcePath]目录下 ...
分类:
其他好文 时间:
2015-07-18 12:14:36
阅读次数:
112