Git Product home page Git Product logo

ppdragdropbadgeview's Introduction

PPDragDropBadgeView

PPDragDropBadgeView is a badge view which able to drag and drop. Just like QQ 5.0 badge view. image

  • Support iOS 5.0+ ARC

Configure

  • Checkout PPDragDropBadgeView from github.
  • Copy PPDragDropBadgeView folder to your project.
  • Go to 'TARGET' -> 'Build Phases' -> 'Complile Sources', add compliler flags '-fno-objc-arc' for 'PRTween.m' and 'PRTweenTimingFunctions.m'
  • Done.

You can also refer to the example project provided by me.

Usage

  • Q: How to use PPDragDropBadgeView?

  • A: Very simple, you only follow the down code.

PPDragDropBadgeView* badgeView
= [[PPDragDropBadgeView alloc] initWithFrame:CGRectMake(0, 0, 20, 20) dragdropCompletion:^{ NSLog(@"Drag drop done."); }]; badgeView.text = @"6";

  • Q: Does it can be customized?
  • A: Of course, You can see the propertys provided by me.
      /** The completion block when drag drop done. */
      @property (nonatomic, copy) void(^dragdropCompletion)();
      
      /** The tint color of badge view. Default is red */
      @property (nonatomic, strong) UIColor* tintColor;
      
      /** The text of badge view. */
      @property (nonatomic, strong) NSString* text;
    

History

  • v2.0 (July 2, 2015)
    • Fix bug, it can scroll tableview when badage in cell.
  • v1.2 (June 18, 2015)
    • Fix bug, it does't drag when in innner viewcontroller.
  • v1.1 (May 8, 2015)
    • Fix Bug, it will crash when drag sometimes.
  • v1.0 (March 30, 2015)
    • First release.

License

The code follows MIT Lisence.

Contact

If you have any questions with use it or found some bugs, you can mail to me. I will get back to you in time. The follow is my email address: [email protected]

ppdragdropbadgeview's People

Contributors

smallmuou avatar

Watchers

James Cloos avatar 程倩 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.