pod 'MGDragView'
一个简单可拖拽的View,只需导入分类头文件#import "UIView+Drag.h"即可
#如何使用:
UIView *view0 = [[UIView alloc] initWithFrame:CGRectMake(120, 80, 70, 70)];
view0.backgroundColor = [UIColor purpleColor];
view0.mg_canDrag = YES;// 设置是否需要拖拽功能
view0.mg_isAdsorb = NO;// 设置是否需要吸附效果
view0.mg_bounces = YES;// 设置是否需要弹性动画
[self.view addSubview:view0];
MGDragView now is V0.0.1 .
DeeplinkNavigator is under MIT license. See the LICENSE file for more info.