码迷,mamicode.com
首页 >  
搜索关键字:uicolor uiimage    ( 1989个结果
让TabelView视图中自定义的Toolbar固定(不随cell的移动而移动)
//在viewDidLoad方法中创建Toolbartoolbar = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 66)];toolbar.backgroundColor = [UIColor redColor];//添加到tableVi...
分类:移动开发   时间:2014-05-26 13:29:07    阅读次数:207
初识CGImageRef以及CGImage
初识CGImageRef是在一张大图片中裁剪出其中的小图片用到的,具体如下:UIImage *bigImage = [UIImageimageNamed:@"big”];CGFloatsmallW = bigImage.size.width/12 * [UIScreenmainScreen].sca...
分类:其他好文   时间:2014-05-26 13:05:13    阅读次数:203
错误-终止应用程序由于未捕获的异常的nsinvalidargumentexception’,原因:“[:]:未知的UIView setImage选择器送到实例0x8d78d20”
1 UIImage *image = [UIImage imageNamed:tempAppInfo.icon];2 UIImageView *appIcon = (UIImageView *) [appView viewWithTag:0]; 3 appIcon.image = image;每次执...
分类:其他好文   时间:2014-05-26 12:35:45    阅读次数:226
ios的UIImage的两种不同的图片加载方式 tom猫
在ios的UI交互设计时,对图片的处理是难免的;不同的处理方式会对内存有不同的影响;************************************************************a:图片格式及NSBundle加载全路径: 1》xcode或者说苹果官方是极力推荐使用的图片格....
分类:移动开发   时间:2014-05-26 12:22:07    阅读次数:280
iOS开发中16进制颜色(html颜色值)字符串转为UIColor
//16进制颜色(html颜色值)字符串转为UIColor+(UIColor *) hexStringToColor: (NSString *) stringToConvert{ NSString *cString = [[stringToConvert stringByTrimmingCh...
分类:移动开发   时间:2014-05-26 08:43:21    阅读次数:207
图像选择与处理
图像选择器(UIImagePickerController)显示用户的照片库,用户选择照片后,图像选择器返回一个相应的UIImage对象。要显示图像选择器,可分配并初始化一个UIImagePickerController实例,再设置属性sourceType,以指定用户可从哪些地方选择图像。UIIma...
分类:其他好文   时间:2014-05-24 11:31:48    阅读次数:332
iOS 错误提示
1.CUICatalog: Invalid asset name supplied: , or invalid scale factor: 2.000000=》原因:You are calling[UIImage imageNamed:@""]or[UIImage imageNamed:nil].N...
分类:移动开发   时间:2014-05-23 06:48:14    阅读次数:273
UIButton 设置为圆形,并且使用图片(UIImage)当做背景
-(UIButton *)shareButtonWithIcon:(NSString *)iconName{ UIButton *button = [UIButtonbuttonWithType:UIButtonTypeCustom]; button.frame = CGRectMake(100.....
分类:其他好文   时间:2014-05-23 05:33:28    阅读次数:221
IOS把图片做成圆形效果
利用CAShapeLayer可以制作出任意的几何图形,把它作为UIImageView的遮罩,达到把图片做成圆形效果。    imgView = [[UIImageView alloc]initWithFrame:CGRectMake(10, 35, 80, 80)]; imgView.image = [UIImage imageNamed:@"ma.jpg"]; UIBez...
分类:移动开发   时间:2014-05-22 22:51:33    阅读次数:485
利用UIImageJPEGRepresentation与UIGraphicsBeginImageContext进行图片压缩的简单比较
UIImage *image01 = [UIImage imageNamed:@"002.png"];//原图 NSData *dataOf02 =UIImageJPEGRepresentation(image01, 0.5);//压缩图片内容,不影响图片的size,得到一个原大小,但更模糊的图片。 UIImage *image02 = [UIImage imageWit...
分类:其他好文   时间:2014-05-21 08:14:49    阅读次数:315
1989条   上一页 1 ... 195 196 197 198 199 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!