码迷,mamicode.com
首页 >  
搜索关键字:imagenamed    ( 362个结果
利用webview显示gif动画
利用webview显示gif动画 CGRect frame = CGRectMake(50,50,0,0);     frame.size = [UIImage imageNamed:@"1.gif"].size;     // 读取gif图片数据     NSData *gif = [NSData dataWithContentsOfFile: [[NSBu...
分类:Web程序   时间:2015-06-26 18:13:38    阅读次数:190
iOS 加载图片选择imageNamed 方法还是 imageWithContentsOfFile?
转:http://blog.csdn.net/dqjyong/article/details/26969355Apple官方的文档为生成一个UIImage对象提供了两种方法:1. imageNamed,其参数为图片的名字;//有缓存2.imageWithContentsOfFile,其参数也是图片文...
分类:移动开发   时间:2015-06-26 12:18:38    阅读次数:141
IOS 设置View背景色
UIImageView *imgView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"01首页.png"]]; imgView.frame = self.view.bounds; imgView.autoresizi...
分类:移动开发   时间:2015-06-25 15:24:36    阅读次数:159
< IOS开发 >关于图片存放的细节
将图片存放在Images.xcassetsImages.xcassets 存放到其中的资源图片不能通过地址访问(contentsOfFile),只能通过(imageNamed)访问.因为Images.xcassets为每张图片创建了一个文件夹进行存放.将图片直接拖入项目中Copy items if ...
分类:移动开发   时间:2015-06-24 10:35:40    阅读次数:124
iOS 8 毛玻璃效果
UIImage *image = [UIImage imageNamed:@"icon"]; UIImageView *bgView = [[UIImageView alloc] initWithImage:image]; bgView.frame = CGRectMake(100,...
分类:移动开发   时间:2015-06-23 19:39:30    阅读次数:137
iOS笔记053- Quartz2D-练习
1、水印处理给图片添加文字、图片水印 // 水印处理 - (void)shuiyin { // 水印处理 UIImage *image = [UIImage imageNamed:@"4"]; UIImage *image2 = [UIImage imageNamed:@"0...
分类:移动开发   时间:2015-06-22 19:13:25    阅读次数:186
UIImageView的简单使用
1 - (void)viewDidLoad { 2 [super viewDidLoad]; 3 //将图片转化为UIImage对象 4 //png格式不需要加扩展名,其它格式图片需要 5 UIImage* image1 = [UIImage imageNamed:...
分类:其他好文   时间:2015-06-21 17:08:55    阅读次数:104
iOS(UIbutton添加图片时候,不显示图片只显示蓝色)
UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem]; // sysytem 自带渲染效果,就是有种按下去的感觉     UIImage *image = [UIImage imageNamed:@"5ZPU059BYTUY)CE9ZIKWEPN.jpg"];  [button setImage:image ...
分类:移动开发   时间:2015-06-20 11:54:52    阅读次数:1696
IOS UI segmentedControl UISegmentedControl 常见属性和用法
UISegmentedControl中一些常见的属性和用法//设置以图案作为分段的显示,仅需要图案的轮廓,这样颜色为分段的背景颜色// NSArray *items = @[[UIImage imageNamed:@"segmented1"],[UIImage imageNamed:@"segme....
分类:移动开发   时间:2015-06-17 10:58:01    阅读次数:141
ios8下添加高斯模糊、ios7创建快照
1.UIImageView *imageView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"IMG_0004"]]; imageView.frame = CGRectMake(0, 0,320, 720); [se...
分类:移动开发   时间:2015-06-14 16:39:59    阅读次数:139
362条   上一页 1 ... 21 22 23 24 25 ... 37 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!