Latest 3.0.1
Homepage https://github.com/Meniny/MXToast-in-Objective-C
License MIT
Platforms ios 7.0, requires ARC
Frameworks Foundation, UIKit

MXToast-in-Objective-C

MXToast is an Android like alert view.

Installation with CocoaPods

pod 'MXToast'

Usage

#import "MXToast.h"
[[MXToast makeToast:@"Toast with NSString"] show];
// Or:
[MXToast toast:@"Toast with NSString"];

// ---
[MXToast toast:@"Toast with NSString" style:MXToastStyleCenter];

// ---
[[MXToast makeToast:@"You can set duration if you like" duration:5] show];
// Or:
[MXToast toast:@"You can set duration if you like" duration:5];

// ---
[[MXToast makeToast:@"Also delay" delay:0 duration:5] show];
// Or:
[MXToast toast:@"Also delay" delay:0 duration:5];

// ---
[[MXToast makeToastWithFormat:@"%@nrandom number %zd", self.title, arc4random_uniform(20000)] show];
// Or:
[MXToast toastWithFormat:@"%@nrandom number %zd", self.title, arc4random_uniform(20000)];

Latest podspec

{
    "name": "MXToast",
    "version": "3.0.1",
    "summary": "An Android like alert view",
    "description": "The first stable version of MXToast, an Android like alert view",
    "homepage": "https://github.com/Meniny/MXToast-in-Objective-C",
    "license": "MIT",
    "authors": "Elias Abel",
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/Meniny/MXToast-in-Objective-C.git",
        "tag": "3.0.1"
    },
    "source_files": "MXToast-OC/*",
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This