Latest 2.1.1
Homepage https://github.com/Brite-Apps/WToast
License Public Domain (Unlicense)
Platforms ios 8.0, requires ARC
Authors

WToast is a simple info box for iOS inspired by Android Toast.

Requirements

iOS 8.0 and higher.

Features

  • Show toast object with custom text
  • Show toast object with custom image

Usage

Show toast with text

[WToast showWithText:@"This is a short test."];
[WToast showWithText:@"This is a long test." duration:kWTLong];
[WToast showWithText:@"This is a long test." duration:kWTLong roundedCorners:YES];
[WToast showWithText:@"This is a long test." duration:kWTLong roundedCorners:YES gravity:kWTGravityMiddle];

Show toast with image

[WToast showWithImage:[UIImage imageNamed:@"toast-image"]];
[WToast showWithImage:[UIImage imageNamed:@"toast-image"] duration:10];
[WToast showWithImage:[UIImage imageNamed:@"toast-image"] duration:12 roundedCorners:NO];
[WToast showWithImage:[UIImage imageNamed:@"toast-image"] duration:12 roundedCorners:NO gravity:kWTGravityTop];

Hide current toast

[WToast hideToast];
[WToast hideToastAnimated:YES];

Demo

WToast demo

License

This tiny library is public domain. If you like you can mention Brite Apps for it.

Latest podspec

{
    "name": "WToast",
    "version": "2.1.1",
    "summary": "Simple info box for iOS inspired by Android Toast.",
    "description": "WToast is a simple info box for iOS inspired by Android Toast.nn            - Show toast object with custom textn- Show toast object with custom image",
    "homepage": "https://github.com/Brite-Apps/WToast",
    "license": {
        "type": "Public Domain (Unlicense)",
        "file": "UNLICENSE"
    },
    "authors": {
        "Nik Dyonin": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/Brite-Apps/WToast.git",
        "tag": "2.1.1"
    },
    "source_files": "WToast",
    "requires_arc": true
}

Pin It on Pinterest

Share This