CoderZhuXH / Xhtoast
Licence: mit
简洁轻便提示工具,一行代码既可完成提示信息显示 - 支持自定义显示位置及停留时间
Stars: ✭ 152
Labels
Projects that are alternatives of or similar to Xhtoast
Nim ios uikit
网易云信 iOS UI 组件,提供聊天界面,文本消息,图片消息,语音消息,视频消息,地理位置消息,自定义消息(阅后即焚)等消息示例。#推荐客户得比特币,首次推荐得0.02BTC,连续推荐得0.03BTC/单,上不封顶。点击参与https://yunxin.163.com/promotion/recommend
Stars: ✭ 1,326 (+772.37%)
Mutual labels: pod
Ckube
A cli to simplify working with kubectl for some common workflows
Stars: ✭ 127 (-16.45%)
Mutual labels: pod
Fwcyclescrollview
轮播控件:支持本地图片、网络图片、自定义视图,轮播分页控件有多重可选方案,轮播次数、间隔时间也可设置,更多配置请参考”可设置参数“。提供OC使用Demo。
Stars: ✭ 59 (-61.18%)
Mutual labels: pod
Rsformview
A Cocoapods library designed to easily create forms with multiple data entry fields
Stars: ✭ 84 (-44.74%)
Mutual labels: pod
Php K8s
PHP K8s is a PHP handler for the Kubernetes Cluster API, helping you handling the individual Kubernetes resources directly from PHP, like viewing, creating, updating or deleting resources.
Stars: ✭ 111 (-26.97%)
Mutual labels: pod
Fwsidemenu
侧滑控件:支持左、右滑动的侧滑菜单,可配置单侧滑动,同时可配置菜单宽度等,更多配置请参考”可设置参数“。参考了QQ用户体验:支持边缘侧滑,解决手势冲突问题(边缘范围可设置)。提供OC使用Demo。
Stars: ✭ 90 (-40.79%)
Mutual labels: pod
Luexpandabletableview
A subclass of UITableView with expandable and collapsible sections
Stars: ✭ 125 (-17.76%)
Mutual labels: pod
Swifttwitch
👾 The New Twitch API for iOS; wrapped in Swift goodness 👾
Stars: ✭ 72 (-52.63%)
Mutual labels: pod
Fcipaddressgeocoder
iOS Geocoder for geocode device IP Address location using GeoIP service(s) and a block-based syntax. 💻🌍
Stars: ✭ 114 (-25%)
Mutual labels: pod
Mialertcontroller
A simple fully customizable alert controller
Stars: ✭ 53 (-65.13%)
Mutual labels: pod
Abexpandableview
Expandable, collapsible, filterable and single/multi selectable table view.
Stars: ✭ 138 (-9.21%)
Mutual labels: pod
Hhcustomcorner
Awesome library to customize corners of UIView and UIButton. Now you can customize each corner differently
Stars: ✭ 36 (-76.32%)
Mutual labels: pod
Fcuuid
iOS UUID / Universally Unique Identifiers library as alternative to UDID and identifierForVendor. 📱
Stars: ✭ 1,387 (+812.5%)
Mutual labels: pod
Filebeat Kubernetes
Filebeat container, alternative to fluentd used to ship kubernetes cluster and pod logs
Stars: ✭ 147 (-3.29%)
Mutual labels: pod
K8s
Deploying Kubernetes High Availability Cluster with Ansible Playbook
Stars: ✭ 125 (-17.76%)
Mutual labels: pod
XHToast
简洁轻便提示工具,一行代码,既可完成提示信息显示.
==============
https://github.com/CoderZhuXH/XHToastSwift
Swift版本请戳这里>>>技术交流群(群号:537476189)
效果
使用方法
1.普通调用
//您只需要调用一行代码,既可完成提示信息显示
//1.在window上显示toast
/**
中间显示
*/
[XHToast showCenterWithText:@"您要显示的提示信息"];
/*
上方显示
*/
[XHToast showTopWithText:@"您要显示的提示信息"];
/*
下方显示
*/
[XHToast showBottomWithText:@"您要显示的提示信息"];
//2.你也可以这样调用,在view上显示toast
/**
* 中间显示
*/
[self.view showXHToastCenterWithText:@"您要显示的提示信息"];
/**
* 上方显示
*/
[self.view showXHToastTopWithText:@"您要显示的提示信息"];
/**
* 下方显示
*/
[self.view showXHToastBottomWithText:@"您要显示的提示信息"];
2.自定义Toast停留时间+到屏幕上端/下端距离(见如下方法)
1.显示至window(通过XHToast调用)
#pragma mark-中间显示
/**
* 中间显示+自定义停留时间
*
* @param text 内容
* @param duration 停留时间
*/
+ (void)showCenterWithText:(NSString *)text duration:(CGFloat)duration;
#pragma mark-上方显示
/**
* 上方显示+自定义停留时间
*
* @param text 内容
* @param duration 停留时间
*/
+ (void)showTopWithText:(NSString *)text duration:(CGFloat)duration;
/**
* 上方显示+自定义距顶端距离
*
* @param text 内容
* @param topOffset 到顶端距离
*/
+ (void)showTopWithText:(NSString *)text topOffset:(CGFloat)topOffset;
/**
* 上方显示+自定义距顶端距离+自定义停留时间
*
* @param text 内容
* @param topOffset 到顶端距离
* @param duration 停留时间
*/
+ (void)showTopWithText:(NSString *)text topOffset:(CGFloat)topOffset duration:(CGFloat)duration;
#pragma mark-下方显示
/**
* 下方显示+自定义停留时间
*
* @param text 内容
* @param duration 停留时间
*/
+ (void)showBottomWithText:(NSString *)text duration:(CGFloat)duration;
/**
* 下方显示+自定义距底端距离
*
* @param text 内容
* @param bottomOffset 距底端距离
*/
+ (void)showBottomWithText:(NSString *)text bottomOffset:(CGFloat)bottomOffset;
/**
* 下方显示+自定义距底端距离+自定义停留时间
*
* @param text 内容
* @param bottomOffset 距底端距离
* @param duration 停留时间
*/
+ (void)showBottomWithText:(NSString *)text bottomOffset:(CGFloat)bottomOffset duration:(CGFloat)duration;
2.在view上显示(通过view调用)
#pragma mark-中间显示
/**
* 中间显示+自定义停留时间
*
* @param text 内容
* @param duration 停留时间
*/
- (void)showXHToastCenterWithText:(NSString *)text duration:(CGFloat)duration;
#pragma mark-上方显示
/**
* 上方显示+自定义停留时间
*
* @param text 内容
* @param duration 停留时间
*/
- (void)showXHToastTopWithText:(NSString *)text duration:(CGFloat)duration;
/**
* 上方显示+自定义距顶端距离
*
* @param text 内容
* @param topOffset 到顶端距离
*/
- (void)showXHToastTopWithText:(NSString *)text topOffset:(CGFloat)topOffset;
/**
* 上方显示+自定义距顶端距离+自定义停留时间
*
* @param text 内容
* @param topOffset 到顶端距离
* @param duration 停留时间
*/
- (void)showXHToastTopWithText:(NSString *)text topOffset:(CGFloat)topOffset duration:(CGFloat)duration;
#pragma mark-下方显示
/**
* 下方显示+自定义停留时间
*
* @param text 内容
* @param duration 停留时间
*/
- (void)showXHToastBottomWithText:(NSString *)text duration:(CGFloat)duration;
/**
* 下方显示+自定义距底端距离
*
* @param text 内容
* @param bottomOffset 距底端距离
*/
- (void)showXHToastBottomWithText:(NSString *)text bottomOffset:(CGFloat)bottomOffset;
/**
* 下方显示+自定义距底端距离+自定义停留时间
*
* @param text 内容
* @param bottomOffset 距底端距离
* @param duration 停留时间
*/
- (void)showXHToastBottomWithText:(NSString *)text bottomOffset:(CGFloat)bottomOffset duration:(CGFloat)duration;
安装
- 1.将 XHToast 文件夹添加到工程目录中
- 2.导入 XHToast.h
- 1.在 Podfile 中添加 pod 'XHToast'
- 2.执行 pod install 或 pod update
- 3.导入 XHToast.h
3.Tips
- 1.如果发现pod search XHToast 搜索出来的不是最新版本,需要在终端执行cd desktop退回到desktop,然后执行pod setup命令更新本地spec缓存(需要几分钟),然后再搜索就可以了
- 2.如果你发现你执行pod install后,导入的不是最新版本,请删除Podfile.lock文件,在执行一次 pod install
系统要求
- 该项目最低支持 iOS 7.0 和 Xcode 7.0
许可证
XHToast 使用 MIT 许可证,详情见 LICENSE 文件
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].