+ (UIImage *)imageNamed:(NSString *)name inBundle:(NSBundle *)bundlecompatibleWithTraitCollection:(UITraitCollection *)traitCollection ...
分类:
其他好文 时间:
2015-10-09 11:40:36
阅读次数:
147
非常好用的 //本地图片4 NSArray *images = @[[UIImage imageNamed:@"h1.jpg"], [UIImage imageNamed:@"h2.jpg"], ...
分类:
其他好文 时间:
2015-10-05 23:15:52
阅读次数:
265
一,code// 创建UIImageView UIImageView* topView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"IMG_1483"]]; topView.frame = CGRectMake(0, -H.....
分类:
移动开发 时间:
2015-10-03 18:02:34
阅读次数:
178
第一步: 布置需要放大的TopView:1. 创建TopViewUIImageView *topView = [[UIImageView alloc] init];2. 设置图片UIImage *image = [UIImage imageNamed:@"Big.jpg"];topView.imag...
分类:
移动开发 时间:
2015-09-30 16:03:48
阅读次数:
197
在IOS 7.0中会对selectedImage 的图片进行再次渲染为蓝色,要想显示原图,就必须得告诉它:“不要渲染”代码是://声明这张图片用原图 别渲染 UIImage *selectedImage = [UIImage imageNamed:@"tabbar_home_selected"];....
分类:
其他好文 时间:
2015-09-28 16:13:21
阅读次数:
132
1.//加载图片
????????NSTextAttachment?*attch?=?[[NSTextAttachment?alloc]?init];
????????attch.image?=?[UIImage?imageNamed:emotion.png];
????????CGFlo...
分类:
其他好文 时间:
2015-09-25 18:49:27
阅读次数:
559
//将图片用瓦片拉伸的方式进行拉伸- (UIImage *)changeImgWith:(NSString *)imgName{ UIImage *img = [UIImage imageNamed:imgName]; CGFloat W = img.size.width*0.5; ...
分类:
其他好文 时间:
2015-09-23 13:23:04
阅读次数:
167
我SDWebImage库加载远程图片到一个表视图中我创建了一个自定义单元格类。[cell.imageView setImageWithURL:url placeholderImage:[UIImage imageNamed:@"loading.jpg"]];现在的问题是它加载在可见单元格的图像,而不...
分类:
Web程序 时间:
2015-09-22 18:33:00
阅读次数:
4252
上面是效果图,左边添加了毛玻璃选项,右边为没有毛玻璃时的样子.下边出代码第一种设置图片//设置背景图片 UIImage *image = [UIImage imageNamed:@"beautiful.jpg"]; UIImageView *backgroundImage = [[UIImage.....
分类:
移动开发 时间:
2015-09-22 10:09:37
阅读次数:
160
将图片写入模拟器相册 UIImageWriteToSavedPhotosAlbum([UIImage imageNamed:@"call"], nil, nil, nil); UIView* uiViewBuildingAddress=[[UIViewalloc]initWithFrame:s...
分类:
移动开发 时间:
2015-09-21 17:49:20
阅读次数:
211