Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 989 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 989 Bytes

MGDragView

From CocoaPods【使用CocoaPods】

pod 'MGDragView'

Manually【手动导入】

一个简单可拖拽的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];

111.gif

Version

MGDragView now is V0.0.1 .

License

DeeplinkNavigator is under MIT license. See the LICENSE file for more info.