Files
featherVoice/QXLive/Third/TFPopup/TFPopupToast.h
2026-01-27 19:10:51 +08:00

40 lines
1.1 KiB
Objective-C
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// TFPopupToast.h
// TFPopupDemo
//
// Created by ztf on 2019/1/14.
// Copyright © 2019年 ztf. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TFPopupConst.h"
@class TFPopupToast;
typedef void(^TFPopupToastBlock)(TFPopupToast *toast);
@interface TFPopupToast : UIView
@property(nonatomic,assign)UIEdgeInsets edge;
@property(nonatomic,strong)UILabel *msgLabel;
//注释同下
+(void)tf_show:(UIView *)inView msg:(NSString *)msg animationType:(TFAnimationType)animationType;
/* toast展示,默认黑底白字,底80%黑色不透明度
* inView 容器视图
* msg弹出string
* offset,弹框偏移,offset.x正为右移,offset.y正为下移
* duration,自动消失时间值为0时默认被设置为最低为1.5s,根据字数计算消失时间最大5s
* animationType,动画方式,渐隐和缩放,默认渐隐
* customBlock,可在此回调内设置样式 */
+(void)tf_show:(UIView *)inView
msg:(NSString *)msg
offset:(CGPoint)offset
dissmissDuration:(NSTimeInterval)duration
animationType:(TFAnimationType)animationType
customBlock:(TFPopupToastBlock)customBlock;
@end