代码拉取完成,页面将自动刷新
同步操作将从 朱晓辉/XHToast 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
==============
//您只需要调用一行代码,既可完成提示信息显示
//1.在window上显示toast
/**
中间显示
*/
[XHToast showCenterWithText:@"您要显示的提示信息"];
/*
上方显示
*/
[XHToast showTopWithText:@"您要显示的提示信息"];
/*
下方显示
*/
[XHToast showBottomWithText:@"您要显示的提示信息"];
//2.你也可以这样调用,在view上显示toast
/**
* 中间显示
*/
[self.view showXHToastCenterWithText:@"您要显示的提示信息"];
/**
* 上方显示
*/
[self.view showXHToastTopWithText:@"您要显示的提示信息"];
/**
* 下方显示
*/
[self.view showXHToastBottomWithText:@"您要显示的提示信息"];
#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;
#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;
XHToast 使用 MIT 许可证,详情见 LICENSE 文件
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。