YHStopProxy.h 668 Bytes
//
//  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