RGToast 1.0.0

RGToast 1.0.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.


Downloads

Total20,303
Week0
Month0

Installs

Apps37
Test Targets2
powered by Segment

GitHub

Stars6
Watchers0
Forks0
Issues0
Contributors1
Pull Requests0

Code

Files6
LOCLines of Code 167


RGToast 1.0.0

  • By
  • Ryan Grier

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.

RGToast-Portrait RGToast-Landscape

My plans are to add different styles of toasts in a future version.

Add RGToast to Project

Use CocoaPods to add RGToast to your Podfile:

pod 'RGToast', '1.0.0'

Usage

Add RGToast to your ViewController:

#import "RGToast.h"

This call will show a toast with a short duration.

[[RGToast makeToast:@"Toast!"] show];

To get a bit more granular, make this call:

[[RGToast makeToast:@"Long Toast!" duration:RGToastViewDurationLong] show];

That's it!

Sample App

I have also written and provided a sample app called RGToastSample that shows you how to use the app.

Docs

Appledocs

Creator

Ryan Grier
@rwgrier

License

RGToast is available under the MIT license. See the LICENSE file for more info.