Latest 0.0.1
Homepage https://github.com/LYM-mg/MGDragView
License MIT
Platforms ios 5.0, requires ARC
Authors

MGDragView

  • 一个简单可拖拽的View,只需导入分类头文件即可

MGDragView

如何使用:

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];

一个可拖拽的View
一个可拖拽的View
图片描述

Latest podspec

{
    "name": "MGDragView",
    "version": "0.0.1",
    "summary": "MG: u4f7fu7528u8fc7u6700u7b80u5355u6700u597du7528u62d6u62fdu7684view",
    "license": "MIT",
    "authors": {
        "LYM-mg": "[email protected]"
    },
    "platforms": {
        "ios": "5.0"
    },
    "homepage": "https://github.com/LYM-mg/MGDragView",
    "source": {
        "git": "https://github.com/LYM-mg/MGDragView.git",
        "tag": "0.0.1"
    },
    "source_files": "MGDragView",
    "requires_arc": true
}

Pin It on Pinterest

Share This