随笔分类 -  03.IOS进阶UI控件

摘要:*****HMViewController.m#import "HMViewController.h"#import "HMWheelView.h"@interface HMViewController ()@property (nonatomic, weak) HMWheelView *wheel... 阅读全文
posted @ 2015-09-06 18:06 iso 阅读(393) 评论(0) 推荐(0)
摘要:****动画组// 核心动画都是假象,不能改变layer的真实属性的值// 展示的位置和实际的位置不同。实际位置永远在最开始位置#import "HMViewController.h"@interface HMViewController ()@property (weak, nonatomic) ... 阅读全文
posted @ 2015-09-06 17:33 iso 阅读(140) 评论(0) 推荐(0)
摘要:***翻页效果#import "HMViewController.h"@interface HMViewController ()@property (weak, nonatomic) IBOutlet UIImageView *imageView;@property (nonatomic, ass... 阅读全文
posted @ 2015-09-06 17:30 iso 阅读(168) 评论(0) 推荐(0)
摘要:***#import "HMViewController.h"#define angle2radian(x) ((x) / 180.0 * M_PI)@interface HMViewController ()@property (weak, nonatomic) IBOutlet UIImageV... 阅读全文
posted @ 2015-09-06 17:29 iso 阅读(191) 评论(0) 推荐(0)
摘要:*******#import "HMViewController.h"@interface HMViewController ()@property (weak, nonatomic) IBOutlet UIView *redView;@end@implementation HMViewContro... 阅读全文
posted @ 2015-09-06 17:26 iso 阅读(321) 评论(0) 推荐(1)
摘要:*******#import "HMViewController.h"@interface HMViewController ()@property (nonatomic, weak) CALayer *layer;@end@implementation HMViewController- (voi... 阅读全文
posted @ 2015-09-06 17:23 iso 阅读(229) 评论(0) 推荐(0)
摘要:****#import "HMViewController.h"// 每秒秒针转6度#define perSecendA 6// 每分钟分针转6度#define perMinuteA 6// 每小时时针转6度#define perHourA 30// 每分钟时针转6度#define perMinut... 阅读全文
posted @ 2015-09-06 17:11 iso 阅读(639) 评论(0) 推荐(0)
摘要:******隐式动画(手指拖拽Layer)#import "HMViewController.h"@interface HMViewController ()@property (nonatomic, weak) CALayer *layer;@end@implementation HMViewCo... 阅读全文
posted @ 2015-09-06 17:03 iso 阅读(164) 评论(0) 推荐(0)
摘要:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. // 创建一个图层 CALayer *laye... 阅读全文
posted @ 2015-09-06 17:00 iso 阅读(127) 评论(0) 推荐(0)
摘要:****动画效果- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [UIView animateWithDuration:1 animations:^{ // 旋转// ... 阅读全文
posted @ 2015-09-06 16:55 iso 阅读(1194) 评论(0) 推荐(0)
摘要:略 阅读全文
posted @ 2015-09-01 17:24 iso 阅读(121) 评论(0) 推荐(0)
摘要:****#import "HMViewController.h"#import "UIImage+Tool.h"@interface HMViewController ()@property (weak, nonatomic) IBOutlet UIImageView *imageView;@end... 阅读全文
posted @ 2015-09-01 17:19 iso 阅读(316) 评论(0) 推荐(0)
摘要:****图片 水印#import "HMViewController.h"@interface HMViewController ()@property (weak, nonatomic) IBOutlet UIImageView *imageView;@end@implementation HMV... 阅读全文
posted @ 2015-09-01 17:15 iso 阅读(144) 评论(0) 推荐(0)
摘要:***#import "HMView.h"@interface HMView(){ int count;}@property (nonatomic, assign) CGFloat snowY;@end@implementation HMView- (id)initWithFrame:(CGR... 阅读全文
posted @ 2015-09-01 17:10 iso 阅读(133) 评论(0) 推荐(0)
摘要:***#import "HMBarView.h"#import "UIColor+Random.h"@implementation HMBarView- (id)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; ... 阅读全文
posted @ 2015-09-01 17:09 iso 阅读(206) 评论(0) 推荐(0)
摘要:****#import "HMPieView.h"#import "UIColor+Random.h"@implementation HMPieView- (id)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; ... 阅读全文
posted @ 2015-09-01 17:08 iso 阅读(223) 评论(0) 推荐(0)
摘要:*************自定义下载的view的方法#import "HMProgressView.h"@interface HMProgressView()@property (nonatomic, weak) UILabel *label;@end@implementation HMProgre... 阅读全文
posted @ 2015-09-01 17:05 iso 阅读(141) 评论(0) 推荐(0)
摘要:***************基本图像绘制 画线#import "HMLineView.h"@implementation HMLineView- (id)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; i... 阅读全文
posted @ 2015-08-31 17:51 iso 阅读(161) 评论(0) 推荐(0)
摘要:7> 手势识别 使用UIImageView原因:之前既能看见图片,又能监听点击的只有UIButton,学了手势,我们的UIImageView也可以。 * tap(代理:左边不能点,右边能点) * longPress(allowableMovement:触发之前,最大的移动范围) > 默认调用两次,开... 阅读全文
posted @ 2015-08-31 15:50 iso 阅读(295) 评论(0) 推荐(0)
摘要:******HMDrawViewController.m#import "HMDrawViewController.h"@interface HMDrawViewController ()@property (nonatomic, assign) BOOL isDraging;@end@implem... 阅读全文
posted @ 2015-08-31 15:43 iso 阅读(257) 评论(0) 推荐(0)