iOS-生成Bundle包-引入bundle-使用bundle
来源:互联网 发布:cyc指标源码 编辑:程序博客网 时间:2024/05/22 07:46
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
- 每天20篇blog的限制
- 去大公司,还是小公司?
- 统领学习的二八法则
- 磨刀不误砍柴工!打开软件前应该执行的四个方面
- C语言字符数组的输入与输出
- iOS-生成Bundle包-引入bundle-使用bundle
- 课后作业静态网页制作-仿Argo官网
- web.xml
- Java 序列化Serializable详解(附详细例子)
- ZQY 2016.06 刷题记录
- mongodb在ubutun上的安装
- jdbc.properties
- android开发中标题栏不显示的原因之一
- 全球变暖基础知识小测试程序(Global Warming Facts Quiz)