• Stars
    star
    164
  • Rank 230,032 (Top 5 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created over 2 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple Objective-C toast notifications

LCToast

Add toast to UIView.

Requirements

  • iOS 8.0+

Features

The LCToast is a comparison of features with Toast and SVProgressHUD.

LCToast Toast SVProgressHUD
image position top center left center top center
superview any views any views UIWindow
automatic calculation text time interval
dismiss activity when toast shown
activity/progress support the message
modify offset
progress
subtitle
queue
support for disabling superview interaction

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 activity toast

[self.view lc_showActivityToast:@"加载中..."];

show progress toast

[self.view lc_showProgressToast:0.7 message:@"下载中..."];

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.

More Repositories

1

LCInfiniteScrollView

An infinite-scroll banner implemented with two views, includes Swift and Objective-C APIs.
Objective-C
187
star
2

LCWebImage

An asynchronous image loading framework based on AFNetworking.
Objective-C
26
star
3

AHP

层次分析法
Python
17
star
4

KeyboardListener

Prevent keyboard from covering UITextField/UITextView with only one line of code, includes Swift and Objective-C APIs.
Objective-C
13
star
5

LCDownloadManager

多任务断点下载(包括OC和Swift)
Objective-C
12
star
6

LCPullRefresh

Give pull-to-refresh to any UIScrollView.
Objective-C
9
star
7

LCHelper

Some categories in Objective-C
Objective-C
8
star
8

DrawBoardDemo

使用CAShaperLayer做的一个画板,支持删除、撤销、恢复
Swift
6
star
9

SwiftHelper

Some extensions in Swift.
Swift
5
star
10

LCCollectionLayout

自定义Layout布局
Objective-C
3
star
11

LCPhotoBrowser

基于PhotoKit封装的相册多选功能,支持图片多选、预览缩放。
Swift
3
star
12

LCCycleBanner

An infinite scroll control implemented with two views.
Swift
3
star
13

HeadImageDraw

头像图片剪切(支持图片放大,平移)
Swift
3
star
14

HandleLockDemo

模仿网易邮箱大师做的手势解锁。
Swift
2
star
15

PagingMenu

A paging menu controller built from other view controllers placed inside a scroll view
Swift
2
star
16

AutoIPA

iOS 自动化打包上传到蒲公英并通知到钉钉群
Shell
1
star
17

MarginLabel

Swift
1
star
18

AttachmentTextView

Use NSAttributedString to add subviews to UITextView
Swift
1
star
19

Refreshing

An easy way to implement pull-to-refresh feature based on UIScrollView extension.
Swift
1
star
20

ImagePickerViewController

A view controller that manages the system interfaces for taking pictures and choosing items from the user’s media library.
Swift
1
star