Latest 1.0.2
Homepage https://github.com/iTofu/LCTipView
License MIT
Platforms ios 7.0, requires ARC
Dependencies Masonry, GPUImage
Authors

Travis
CocoaPods
CocoaPods
CocoaPods
LeoDev

☀️ A lovely HUD ~

LCTipView

In me the tiger sniffs the rose.

心有猛虎,细嗅蔷薇。

Welcome to my blog: http://LeoDev.me

中文介绍

Introduction

Just a HUD, look cute~ ☺️

This project uses the Masonry and GPUImage.

If you like it, please give this project a star, thank you! ⭐️

Installation

LCTipView is available on CocoaPods. Just add the following to your project Podfile:

pod 'LCTipView'  # Podfile

Tip: Ignore Xcode warnings when using CocoaPods:

# ignore all warnings from all pods
inhibit_all_warnings!

# ignore warnings from a specific pod
pod 'GPUImage', :inhibit_warnings => true

Non-CocoaPods Installation

Just drag the LCTipView folder into your project.

Usage

  • Use by including the following import:

    #import "LCTipView.h"
  • Demo code:

    • Show
    [LCTipView showWithImage:[UIImage imageNamed:@"login_no_binding"]
                         title:@"你尚未绑定学校,请联系管理员添加"
                  buttonTitles:@[@"关闭"]
                      complete:^(NSInteger buttonIndex) {
    
                          NSLog(@"Clicked: %d", (int)buttonIndex);
                      }];
    • Hide
    [LCTipView hide];
  • You could do some operations in the complete block.

    typedef void(^LCTipViewCompleteBlock)(NSInteger buttonIndex);

Examples

  • Origin view

    LCTipView

  • One button

    LCTipView

  • Two buttons

    LCTipView

  • No buttons, Disappears after 3 seconds (You could customize the time reference the Demo project)

    LCTipView

Release

V 1.0.2

  • Bug fixed: Couldn’t load LCTipView.bundle.

V 1.0.1

  • Bug fixed: Couldn’t find buttons’ image.

V 1.0.0

  • First release.

Thanks

Support

License

MIT License

Latest podspec

{
    "name": "LCTipView",
    "version": "1.0.2",
    "summary": "A lovely HUD~ Support: http://LeoDev.me",
    "homepage": "https://github.com/iTofu/LCTipView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Leo": "[email protected]"
    },
    "social_media_url": "http://LeoDev.me",
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/iTofu/LCTipView.git",
        "tag": "1.0.2"
    },
    "source_files": "LCTipView/*",
    "resources": "LCTipView/LCTipView.bundle",
    "requires_arc": true,
    "dependencies": {
        "Masonry": [
            "1.0.0"
        ],
        "GPUImage": [
            "0.1.1"
        ]
    }
}

Pin It on Pinterest

Share This