iOS-生成Bundle包-引入bundle-使用bundle
来源:互联网 发布:知乎 颗粒板 编辑:程序博客网 时间:2024/06/01 10:20
NSString * bundlePath = [[ NSBundle mainBundle] pathForResource: @ "MyBundle"ofType :@ "bundle"];
NSBundle *resourceBundle = [NSBundle bundleWithPath:bundlePath];
UIViewController *vc = [[UIViewController alloc] initWithNibName:@"vc_name"bundle:resourceBundle];
UIImageView *imgView=[[UIImageView alloc] initWithFrame:CGRectMake(50, 50, 50,50)];
UIImage *image = [UIImage imageNamed:@"MyBundle.bundle/img_collect_success"];
[imgView setImage:image];
UIImageView *imgView=[[UIImageView alloc] initWithFrame:CGRectMake(50, 50, 50,50)];
NSString *imgPath= [bundlePath stringByAppendingPathCom
UIImage *image_1=[UIImage imageWithContentsOfFile:imgPath];
[imgView setImage:image_1];
#define MYBUNDLE_NAME @ "MyBundle.bundle"
#define MYBUNDLE_PATH [[[NSBundle mainBundle] resourcePath] stringByAppendingPathCom
#define MYBUNDLE [NSBundle bundleWithPath: MYBUNDLE_PATH]
- iOS-生成Bundle包-引入bundle-使用bundle
- iOS-生成Bundle包-引入bundle-使用bundle
- iOS-生成Bundle包-引入bundle-使用bundle
- iOS-生成Bundle包-引入bundle-使用bundle
- iOS-生成Bundle包-引入bundle-使用bundle
- iOS-生成Bundle包-引入bundle-使用bundle
- iOS生成Bundle包--引入bundle--使用bundle
- iOS-生成Bundle包-引入bundle-使用bundle
- iOS-生成Bundle包-引入bundle-使用bundle
- iOS-生成Bundle包-引入bundle-使用bundle
- iOS-生成Bundle包-引入bundle-使用bundle
- iOS-生成Bundle包-引入bundle-使用bundle
- iOS-生成Bundle包-引入bundle-使用bundle
- iOS-生成Bundle包
- Bundle
- Bundle
- Bundle
- Bundle
- 死锁
- 众人贷--尊敬的客户,网站升级了!!!
- The Python Tutorial 2——Using the Python Interpreter
- 共享存储技术
- hive的hive.exec.parallel参数说明
- iOS-生成Bundle包-引入bundle-使用bundle
- 黑马程序员_JAVA语言基础组成_关键字、标识符、注释
- 关于<base>标签影响锚点的问题
- 对div块的拖动放大缩小
- TCP/IP详解(协议)笔记——ARP和RARP
- 中国象棋将帅问题
- 10.10系统下 Xcode出现的 一些问题
- CodeForces 487A Fight the Monster
- 基础动画详解