Latest 0.0.7
Homepage https://github.com/TinydustDevelopers/YJMessage
License MIT
Platforms ios 7.0
Authors

A library that displays message in iOS app with Android Snackbar-like style.

Demo

demo.gif

Installation

Add the following line in your Podfile:

pod "YJMessage"

Usage

The usage is simple, similar to TSMessages.

// basic
[YJMessage showMessageInViewController:self
                                     title:@"Hi, there"
                                  duration:1.5f
                                      type:YJMessageTypeInfo];

// show message with completion callback
[YJMessage showMessageInViewController:self
                                    title:@"hi, there"
                                 duration:1.5f
                                     type:YJMessageTypeInfo
                                 callback:^() {
                                     NSLog(@"message showed");
                                 }];

// show message with a button
[YJMessage showMessageInViewController:self
                                     title:@"hey, error!"
                                  duration:1.5f
                                      type:YJMessageTypeInfo
                                  callback:nil
                               buttonTitle:@"tap me"
                            buttonCallback:^{
                                NSLog(@"Tapped.");
                            }];

YJMessageType

YJMessageTypeInfo

message_info.png

YJMessageTypeError

mesage_error.png

YJMessageTypeSuccess

message_sucess.png

YJMessageTypeWarning

message_warnning.png

Latest podspec

{
    "name": "YJMessage",
    "version": "0.0.7",
    "summary": "Elegantly display message notification in your iOS app.",
    "description": "A library that displays message in iOS app with Android Snackbar-like style.",
    "homepage": "https://github.com/TinydustDevelopers/YJMessage",
    "screenshots": "https://raw.githubusercontent.com/TinydustDevelopers/YJMessage/master/images/demo.gif",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Octree": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/TinydustDevelopers/YJMessage.git",
        "tag": "0.0.7"
    },
    "source_files": [
        "Classes",
        "Classes/**/*.{h,m}"
    ],
    "exclude_files": "Classes/Exclude",
    "resources": "Classes/Resources/*.png"
}

Pin It on Pinterest

Share This