YHStopProxy.h
668 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// YHStopProxy.h
// YHAnimationDemo
//
// Created by gaoqiang xu on 2/11/15.
// Copyright (c) 2015 gaoqiang. All rights reserved.
//
#import "YHProxy.h"
#import "YHShorthand.h"
/**
* 动画停止代理类
对该类实例发送消息,即可停止对应动画
*/
@interface YHStopProxy : YHProxy
@end
/**
* NSObject扩展,快速获取停止动画代理类YHStopProxy
*/
@interface NSObject (YHStopProxy)
- (instancetype)pop_stop;
@end
#ifdef YHANIMATE_SHORTHAND
@interface NSObject (YHStopProxy_DropPrefix)
- (instancetype)stop;
@end
@implementation NSObject (YHStopProxy_DropPrefix)
YHSHORTHAND_GETTER(stop, instancetype)
@end
#endif