Latest 0.0.2
Homepage https://github.com/dgytdhy/DGThumbUpButton
License MIT
Platforms ios 5.0, requires ARC
Frameworks UIKit
Authors

[Build Status]() [CocoaPods Version]() [apm]()

Description

Drop-in button control with with particle effects similar to the Like button in Facebook Paper.

带有粒子扩散效果的点赞按钮,模仿Facebook Paper中的Like Button。实现思路可以查看我的博文:If you like me, Thumb Up!。喜欢的话可以Star下✨。

Screenshop

DGThumbUpButton

Setup

Install with CocoaPods by adding the following to your Podfile:

platform :ios, '5.0'
pod 'DGThumbUpButton', '~> 0.0.1'

or add manually:

Add DGThumbUpButton.h to your project.

Basic Examples

DGThumbUpButton *btn = [[DGThumbUpButton alloc] init];
[self.view addSubview: btn];

Q&A

Q: I use CocoaPods to setup the DGThumbUpButton, and I write code as Basic Examples, but I can’t get a Button in the View.

A: When I test CocoaPods, I found this situation. I advise to move .png files in Assets.xcassets

.
├── Podfile
├── Podfile.lock
├── Pods
│   ├── DGThumbUpButton
│   │   ├── DGThumbUpButton
│   │   │   ├── DGExplodeAnimationView.h
│   │   │   ├── DGExplodeAnimationView.m
│   │   │   ├── DGThumbUpButton.h
│   │   │   ├── DGThumbUpButton.m
│   │   │   ├── Like-Blue.png
│   │   │   ├── Like-PlaceHold.png
│   │   │   └── Like-Sparkle.png
      

And change all Like-Blue.png, Like-PlaceHold.png and Like-Sparkle.png files’ name to your custom image set name in your Assets.xcassets.

License

DGThumbUpButton is under the MIT license.

Latest podspec

{
    "name": "DGThumbUpButton",
    "version": "0.0.2",
    "summary": "Like Button With Explosion Effect",
    "description": "Like Button With Explosion Effect.",
    "homepage": "https://github.com/dgytdhy/DGThumbUpButton",
    "license": "MIT",
    "authors": {
        "Desgard_Duan": "[email protected]"
    },
    "source": {
        "git": "https://github.com/dgytdhy/DGThumbUpButton.git",
        "tag": "0.0.2"
    },
    "platforms": {
        "ios": "5.0"
    },
    "source_files": "DGThumbUpButton/*.{m,h}",
    "resource_bundles": {
        "DGThumbUpButton": [
            "DGThumbUpButton/*.png"
        ]
    },
    "exclude_files": "Classes/Exclude",
    "frameworks": "UIKit",
    "requires_arc": true
}

Pin It on Pinterest

Share This