ATToast
示例
要运行示例项目,请克隆仓库,然后首先从 Example 目录运行 pod install
。
NSString *string = @"Be sure to run `pod lib lint ATToast.podspec' to ensure this is a valid spec before submitting.";
NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:string];
NSRange range = [string rangeOfString:@"pod lib lint ATToast.podspec"];
[attributedString addAttribute:NSForegroundColorAttributeName value:[UIColor yellowColor] range:range];
[attributedString addAttribute:NSFontAttributeName value:[UIFont boldSystemFontOfSize:14] range:range];
[attributedString addAttribute:NSUnderlineStyleAttributeName value:@(1) range:range];
[self.view showToastAttributed:attributedString];
需求
安装
ATToast 可以通过 CocoaPods 获取。要安装它,只需将以下行添加到您的 Podfile。
pod 'ATToast'
作者
ablett,[email protected]
许可证
ATToast 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。