iOS-生成Bundle包-引入bundle-使用bundle
来源:互联网 发布:网络推广员待遇怎么样 编辑:程序博客网 时间:2024/05/21 10:21
出自:http://blog.sina.com.cn/s/blog_7b9d64af0101jmj2.html
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
- 多线程
- Logstash资料
- pulltorefresh刷新完成无法取消头部正在刷新
- Vim的常用指令
- 贪吃蛇_lbz888
- iOS-生成Bundle包-引入bundle-使用bundle
- 毕业生自传----(威马逊之夜)
- 如何尽量克服拖延症
- linux驱动的异步通知 驱动程序向应用程序发送信号
- Centos kernel panic-not syncing:VFS:Unable to mount root fs on unknown block
- 将自己的网站分享到微信,qq,或者人人......
- nyoj +-字符串
- 自己编码。。。不会
- iOS抓包工具Charles基本抓包步骤