Important facts about commercial licenses

  • Licenses are perpetual. They do not expire and do not need to be renewed.
  • Licenses can be upgraded. You can upgrade to a more expensive license later paying only the difference in cost.
  • Pay attention to the distribution type - Hosted (sites / servers), binary (applications) or source (includes all the others). Choose according to your needs (more below).
  • All licenses allow commercial use unless otherwise indicated.
  • Read the full license by clicking on the icon.
  • Read more about licenses in our handy license guide.
$12

Basic License

1 application Binary restricted distribution 6 months support
$99

Developer License

Unlimited projects Source and binary distribution 6 months support
You need to log-in or create an account
  • Create an account
  • Log-in
  • Please use your real name.
  • Account activation link will be sent to this address.
  • Minimum 8 characters

Clicking this button confirms you read and agreed to the terms of use and privacy policy.

(4 ratings)

Soft Popup Notification for iOS (Toast)

Soft Popup Notification for iOS (Toast)
Developed by Lucid Vapor LLC, Released Mar 21, 2012

Displays an unintrusive message to the user. It is short lived, fully customizable, and non-interactive so the user can be textually notified without being forced to act.

Objective-C

Tags: ios , iphone , notification , popup

EZToastView displays an unintrusive message to the user. It is short lived, semi-transparent, and non-interactive so the user can be textually notified without being forced to act. It is robustly customizable and allows you to get up and rolling with one line of code. No need to link or import dependent libraries. No need to worry about frame and view dimensions.

EZToastView

Toast messages can be used to notify but not annoy your users. For instance:

  • When there is a validation error
  • When an operation was successful
  • When an operation was not successful
  • When giving instruction clues
  • When displaying tips and tricks
  • When something occurred in the background
  • When there is a network connection error

Features:

  • Customizable colors, fonts, sizes, positions, durations, and more
  • Shows queued up toasts in sequence
  • Well documented with how-to, class reference, and sample project
  • No external libraries or frameworks to import
  • Auto-rotates with device orientation changes
  • Automatically positions and sizes itself
  • Takes one line of code to show a toast
  • Allows for global styling similar to iOS' UIAppearance Protocol
  • Takes minutes to get up and rolling
  • Works for both iPhone and iPad
  • Supports both ARC and non-ARC

See EZToastView How-To for installation and use instructions.

Installation

To install EZToastView, simply drag the EZToastView.h and the EZToastView.m files to your Xcode project. Be sure to import the EZToastView.h file at the top of any class you wish to use it in.

#import "EZToastView.h"

Easy Mode

To easily show an EZToastView to the user with a given text, simply call:

[EZToastView showToastMessage:@"Record updated successfully."];

Default toast


How about a toast with a certain alignment:

[EZToastView showToastMessage:@"Record updated successfully." withAlignment:EZToastViewAlignmentCenter];

Center aligned toast

Alignments possible:

EZToastViewAlignmentBottom
EZToastViewAlignmentCenter
EZToastViewAlignmentTop

How about one with a 10 point margin from the bottom:

[EZToastView showToastMessage:@"Record updated successfully." withAlignment:EZToastViewAlignmentBottom alignmentMargin:10.0f];

Small margin toast

Advanced Features

If you want to customize the look and feel of all of the toast messages, somewhere in your code, possibly the application:didFinishLoadingWithOptions: method, you can set the default values like so:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    //... (typical code above)

    id defaults = [EZToastView appearanceDefaults];
    [defaults setToastBackgroundColor:[UIColor colorWithRed:1.0 green:0.0 blue:0.0 alpha:0.7]];


    return YES;
}

See the EZToastViewAppearanceDefaults Protocol Reference for all available options. Other appearance methods include:

setBorderColor
setBorderWidth
setFadeDuration
setMaximumWidth
setMessageColor
setMessageFont
setShowDuration
setToastAlignment
setToastAlignmentMargin
setToastBackgroundColor
setMessageAlignment

Now any subsequent toasts will have this appearance:

[EZToastView showToastMessage:@"Enter a proper email address."];

A red toast


If you want to show a one-time, customizable toast, you can allocate one like so:

EZToastView *toast = [[EZToastView alloc] init];
toast.toastBackgroundColor = [UIColor whiteColor];
toast.borderColor = [UIColor blackColor];
toast.messageColor = [UIColor darkGrayColor];
toast.borderWidth = 4.0f;
toast.maximumWidth = 100.0f;
toast.message = @"Your upload is complete!";
[toast show];

Heavily customized toast

See the EZToastView Reference for all the property settings available. Other appearance properties include:

fadeDuration
showDuration
toastAlignment
toastAlignmentMargin
maximumWidth
borderWidth
borderColor
toastBackgroundColor
messageColor
messageFont
messageAlignment
message

You can also show the toast within another subview like so:

EZToastView *toast = [[EZToastView alloc] init];
toast.toastAlignment = EZToastViewAlignmentTop;
toast.toastAlignmentMargin = 5.0f;
toast.message = @"No network connection available!";
[toast showInView:self.innerView];

A toast as a subview


See the EZToastView Class Reference for the technical details.

View all 4 reviews »

User Reviews

  • Tom Otvos 7 months ago
    So far, it is working flawlessly. Trivially easy to incorporate.
    Flag
    Was this helpful? Yes No
  • Bernard Simmons 8 months ago
    Easy to use just as the document indicates. Great app, great addition to my tool set.
    Flag
    Was this helpful? Yes No
  • Airizom 10 months ago
    Great component overall. Love the ability to customize.
    Flag
    Was this helpful? Yes No

Questions & Comments


Or enter your name and Email
No comments have been posted yet.
You must be logged-in to vote. Log-in to your account or register now.