Inherits from NSObject
Declared in RGToast.h
RGToast.m

Overview

RGToast provides a toast through the UI for users to see a temporary message shown on the screen. Inspiration for RGToast is taken from both Matthias Tretter’s MTStatusBarOverlay and Android’s Toast mechanism.

RGToast currently only shows a toast as an overlay at the bottom of the screen.

See the project here: RGToast See the sample project here: RGToastSample

Tasks

Properties

Creation Methods

Usage Methods

  • – show

    An instance method to show this RGToast in the UI.

Properties

duration

The duration of the toast.

@property (nonatomic, assign) RGToastViewDuration duration

Discussion

The duration of the toast.

Declared In

RGToast.h

message

The message to be shown in the toast.

@property (nonatomic, copy) NSString *message

Discussion

The message to be shown in the toast.

Declared In

RGToast.h

Class Methods

makeToast:

Creates and returns an RGToast object with the given message and a RGToastViewDurationShort duration.

+ (RGToast *)makeToast:(NSString *)message

Parameters

message

The message to be shown in the toast.

Return Value

A new RGToast object that can be shown.

Discussion

Creates and returns an RGToast object with the given message and a RGToastViewDurationShort duration.

Declared In

RGToast.h

makeToast:duration:

Creates and returns an RGToast object with the given message and duration.

+ (RGToast *)makeToast:(NSString *)message duration:(RGToastViewDuration)duration

Parameters

message

The message to be shown in the toast.

duration

The duration of the toast.

Return Value

A new RGToast object that can be shown.

Discussion

Creates and returns an RGToast object with the given message and duration.

Declared In

RGToast.h

Instance Methods

show

An instance method to show this RGToast in the UI.

- (void)show

Discussion

An instance method to show this RGToast in the UI.

Declared In

RGToast.h