+
Skip to content

sul/LCToast

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LCToast

Add toast to UIView.

Refactored on the basis of Toast.

Requirements

  • iOS 8.0+

Features

LCToast Toast
image position top center left center
subtitle
automatic calculation of hidden time interval
dismiss activity when toast shown
click to hide the activity
modify toast point

Usage

show toast

[self.view lc_showToast:@"床前明月光,疑是地上霜。举头望明月,低头思故乡。"];
LCToastPositionTop LCToastPositionCenter LCToastPositionBottom
top center bottom

show image toast

[self.view lc_showToast:@"春种一粒粟,秋收万颗子。四海无闲田,农夫犹饿死。锄禾日当午,汗滴禾下土。谁知盘中餐,粒粒皆辛苦。" image:[UIImage imageNamed:@"warning"] position:(LCToastPositionCenter)];

show loading

[self.view lc_showLoading];

Installation

CocoaPods

To integrate LCToast into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'LCToast'

Manual

  1. Download everything in the LCToast folder;
  2. Add (drag and drop) the source files in LCToast to your project;
  3. Import UIView+LCToast.h.

License

LCToast is provided under the MIT license. See LICENSE file for details.

About

Add toast to UIView.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 97.9%
  • Ruby 2.1%
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载