# PPDragDropBadgeView **Repository Path**: Calvin_00/PPDragDropBadgeView ## Basic Information - **Project Name**: PPDragDropBadgeView - **Description**: PPDragDropBadgeView is a badge view which able to drag and drop. Just like QQ 5.0 badge view. - **Primary Language**: Objective-C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-07-23 - **Last Updated**: 2024-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PPDragDropBadgeView PPDragDropBadgeView is a badge view which able to drag and drop. Just like QQ 5.0 badge view.  * 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: lvyexuwenfa100@126.com