To run the example project, clone the repo, and run pod install
from the Example directory first.
HYBubbleView *view = [[HYBubbleView alloc] initWithFrame:CGRectMake(100, 200, 50, 60)];
view.numberString = @"99+";
view.finishedBlock = ^(id data) {
if ([data isKindOfClass:[UIPanGestureRecognizer class]]) {
UIPanGestureRecognizer *pan = (UIPanGestureRecognizer *)data;
if (pan.state == UIGestureRecognizerStateEnded) {
NSLog(@"%s--%@", __func__, @"结束了");
} else if (pan.state == UIGestureRecognizerStateCancelled) {
NSLog(@"%s--%@", __func__, @"取消了");
} else if (pan.state == UIGestureRecognizerStateFailed) {
NSLog(@"%s--%@", __func__, @"失败了");
}
}
};
//view.isDisappearInFinished = YES;
[self.view addSubview:view];
HYLikeView *view = [[HYLikeView alloc] initWithFrame:CGRectMake(200, 200, 50, 50)];
view.isLikeBlock = ^(BOOL isLike) {
if (isLike) {
NSLog(@"%s--%@", __func__, @"点赞");
} else {
NSLog(@"%s--%@", __func__, @"取消点赞");
}
};
[self.view addSubview:view];
HYAnimationSmallTool is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'HYAnimationSmallTool'
HYAdonisCoding, 296786475@qq.com
HYAnimationSmallTool is available under the MIT license. See the LICENSE file for more info.