• Stars
    star
    255
  • Rank 159,729 (Top 4 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created over 8 years ago
  • Updated about 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An UIView category which make view become draggable.

ZYDraggableView

Feature

  • Make view become draggable which inherited from UIView.
  • Integrate draggable view just one line of code.

Usage

[view makeDraggable];

Requirements

  • iOS 7.0+
  • Xcode 5.0+

Installation

Add manually:

  • Drag ZYDraggableView folder to your project.
  • Import header file: #import "ZYDraggableView.h"

FAQ

  1. Sometimes draggable view was blocked by other views.

This is depend on draggable view's hierarchical on superview. You can call -bringSubviewToFront: to make draggable view above sibling views.

License

ZYDraggableView is released under the MIT license. See LICENSE for details.