测试已测试 | ✗ |
语言语言 | Obj-CObjective C |
许可 | 自定义 |
发布上次发布 | 2018年2月 |
由lisa718维护。
依赖 | |
HexColors | ~> 2.3.0 |
LSTimer | >= 0 |
以下是支持的信息类型:
2、展示内容:成功、失败、错误、信息
3、展示位置:调用视控器的顶部、底部、覆盖导航栏
4、展示时长:自动消失、不能自动消失(需要点击视图的按钮进行消失)
第二阶段
可以支持按钮点击
它是对外接口类,也是展示提示信息调用的管理类,它实现了上述“主要功能”的内容
方案一
他没有创建视图,就要存储用户调用展示的model,每次创建一个视图,这里不需要model,将提示信息直接放入成员数组进行存储
方案二:
放入NSOperationQueue中,执行时再创建视图,需要model,放入NSOperation中
单例
[LSMessage showMessageWithTitle:@"Your Title"
subtitle:@"A description"
type:TSMessageNotificationTypeError];
// Add a button inside the message
[LSMessage showMessageInViewController:self
title:@"Update available"
subtitle:@"Please update the app"
image:nil
type:0
duration:0
atPosition:0
];
+ (void)dissmissActiveMessage;
UI展示提示信息样式:
icon左侧
title
subtitle
背景
button
根据传入pos来做动画
自上而下出现,动画
自下而上出现,动画
消失动画,相反
pod 'LSMessage'
iOS 7设计