码迷,mamicode.com
首页 >  
搜索关键字:uicolor uiimage    ( 1989个结果
Swift图片原色渲染
public class HuaUtilitityImage: NSObject { // 普通渲染 public func renderingImageWithTintColor(image: UIImage?,_ tintColor: UIColor) -> UIImage?{ return r ...
分类:编程语言   时间:2016-11-30 02:40:45    阅读次数:269
Category在项目中的实际运用
先看两行代码:1. 2. 相信大家对上面的两行代码都不会陌生 上一行:UIColor原本是没有读取十六进制颜色值的方法的 下一行:UITableView原本是没有header属性的 那么,How it happened? Because of the Category! Category(类别)简介 ...
分类:其他好文   时间:2016-11-29 16:50:26    阅读次数:191
Block传值讲解与使用
需求:在FirstViewController中点击"接收"按钮接收来自SecondViewController的block传递的值 步骤如下: 1.在SecondViewController .h文件中声明block 2.在SecondViewController .m文件中实现 - (void) ...
分类:其他好文   时间:2016-11-27 16:41:56    阅读次数:209
iOS编程(双语版)-视图-Frame/Bounds/Center
1. Frame 每个视图都有一个frame属性,它是CGRect结构,它描述了视图所在的矩形在其父视图中的位置。 (屏幕坐标系默认的原点在左上角,x轴向右伸展,y轴向下伸展) 设置frame通常通过视图的指定初始化器initWithFrame 下面来看个例子,该例子初始化了3个相互叠加的矩形区域 ...
分类:移动开发   时间:2016-11-26 02:15:05    阅读次数:293
导入图片时防止渲染
给UIImage+ZT.h添加一个分类,便于使用,添加一个类方法 + (UIImage *)imageWithRenderingOriginalName :(NSString *)imageName; 代码如下: ...
分类:其他好文   时间:2016-11-25 07:34:03    阅读次数:148
iOS10 UI教程视图的几何形状
iOS10 UI教程视图的几何形状 视图属性中的一部分属性可以让定义的视图绘制在屏幕上。在讲解这些属性前,我们首先将讲解,定义视图的几何形状所涉及到的结构类型。这些结构类型如下: CGPoint:它表示一个二维坐标系中的点,由x和y两个属性进行定义。 CGSize:它表示一个矩形的尺寸,由width ...
分类:移动开发   时间:2016-11-23 12:38:17    阅读次数:245
UIImage分类,设置边框
#import "UIImage+image.h"@implementation UIImage (image)+ (UIImage *)imageWithBorder:(CGFloat)borderW color:(UIColor *)color image:(NSString *)imageNa ...
分类:其他好文   时间:2016-11-21 16:39:34    阅读次数:301
ios图片的拉伸
http://blog.csdn.net/q199109106q/article/details/8615661 - (UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger ...
分类:移动开发   时间:2016-11-21 16:38:48    阅读次数:189
iOS iOS10 的适配问题
其他:Xcode8 iOS10 的新特性 1.系统判断方法失效;2.隐私数据的访问问题;3.UIColor 问题4.真彩色的显示5.ATS问题6.UIStatusBar问题7.UITextField8.UserNotifications(用户通知)9.UICollectionViewCell的的优化 ...
分类:移动开发   时间:2016-11-20 14:04:33    阅读次数:478
cell添加选中时的背景图片、显示图片和图片自适应框的大小
1.给cell添加选中时的背景图片 UIView *myview = [[UIView alloc] init]; myview.frame = CGRectMake(0, 0, 320, 47); myview.backgroundColor = [UIColor colorWithPattern ...
分类:其他好文   时间:2016-11-17 01:41:30    阅读次数:152
1989条   上一页 1 ... 30 31 32 33 34 ... 199 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!