https://github.com/YouXianMing
上一页 1 ··· 60 61 62 63 64 65 66 67 68 ··· 85 下一页
摘要: 修改UIView的backedlayer为CAShapeLayer什么叫backedlayer呢?backedlayer指的是一个View在创建好的时候就已经帮你创建好了一个与View大小一致的CALayer了,而且,这个CALayer的所有属性值的改变都不会引起动画反应,除非写在+ (void)a... 阅读全文
posted @ 2014-06-21 14:36 YouXianMing 阅读(559) 评论(0) 推荐(0) 编辑
摘要: 重写UIImageView的image属性效果:当你重写了UIImageView的image属性后你就会对UIImageView怎么显示图片了如指掌了:)源码:UIImageView.h + UIImageView.m//// LiveImageView.h// Progress//// Co... 阅读全文
posted @ 2014-06-21 14:21 YouXianMing 阅读(1074) 评论(1) 推荐(1) 编辑
摘要: ASProgressPopUpViewhttps://github.com/alskipp/ASProgressPopUpView效果:-使用-将源码拖入工程当中://// RootViewController.m// Progress//// Copyright (c) 2014年 Y.X.... 阅读全文
posted @ 2014-06-21 09:53 YouXianMing 阅读(522) 评论(0) 推荐(0) 编辑
摘要: KHFlatButtonhttps://github.com/kylehorn/KHFlatButton效果:对于自己做demo来说,每次设置button就不用这么折腾了,几句话就行了,非常爽:)其实可以改进的地方非常多的.源码:KHFlatButton.h + KHFlatButton.m////... 阅读全文
posted @ 2014-06-20 08:55 YouXianMing 阅读(502) 评论(2) 推荐(0) 编辑
摘要: 解析UIControl从下图可以看出,UIControl继承自UIView,添加了响应事件功能.UIButton之所以能响应各种各样的事件是因为继承自UIControl使用UIControl可以精确的控制按钮事件,我用定制UIControlEventValueChanged来进行说明.YXContr... 阅读全文
posted @ 2014-06-19 17:45 YouXianMing 阅读(1548) 评论(0) 推荐(0) 编辑
摘要: 设置UINavigationController标题的属性 self.title = @"产品详情"; [self.navigationController.navigationBar setTitleTextAttributes:\ [NSDictionary dictiona... 阅读全文
posted @ 2014-06-19 14:04 YouXianMing 阅读(1350) 评论(0) 推荐(0) 编辑
摘要: 使用DIDatepickerhttps://github.com/noxt/DIDatepicker效果:#import "DIViewController.h"#import "DIDatepicker.h"@interface DIViewController ()@property (weak... 阅读全文
posted @ 2014-06-19 09:08 YouXianMing 阅读(490) 评论(1) 推荐(1) 编辑
摘要: 使图片与背景融为一体原始图片 + 显示时的图片例子1例子2例子3作为mask用的图:原理:1. 一个mask用来只显示图片边缘2. 取图片平均颜色并给这个mask赋值3. 将背景色设置成平均色4. 将要显示的图片放置在mask的下面 // 获取显示图片 UIImage *showImag... 阅读全文
posted @ 2014-06-18 16:47 YouXianMing 阅读(1936) 评论(0) 推荐(1) 编辑
摘要: CAGradientLayer的一些属性解析iOS中Layer的坐标系统:效果:- (void)viewDidLoad{ [super viewDidLoad]; CAGradientLayer *colorLayer = [CAGradientLayer layer]; colo... 阅读全文
posted @ 2014-06-18 09:04 YouXianMing 阅读(19772) 评论(6) 推荐(8) 编辑
摘要: UIButton的titleLabel@property(nonatomic, readonly, retain) UILabel *titleLabelDescription - 描述A view that displays the value of the currentTitle proper... 阅读全文
posted @ 2014-06-17 19:59 YouXianMing 阅读(594) 评论(0) 推荐(1) 编辑
上一页 1 ··· 60 61 62 63 64 65 66 67 68 ··· 85 下一页