本库可以用于iOS扩展程序
请看效果
video.mp4
1.设置全局rootView
#import <XSToast/XSToastTool.h>
[XSToastTool share].rootView = [UIApplication sharedApplication].keyWindow;//可以是其他的view
2.使用
#import <XSToast/XSToastTool.h>
[[XSToastTool share] showToast:@"你好啊" second:1];
MEDToast is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'XSToast'
v0.1.3
XSToastTool增加方法,可以配置toast的显示位置
- (void)setGlobalPosition:(XSToastPosition)position;
xiangshun, 113648883@qq.cn
MEDToast is available under the MIT license. See the LICENSE file for more info.