[IOS消息提醒]--- DMRNotificationView
来源:互联网 发布:阿里云申请域名 编辑:程序博客网 时间:2024/05/16 10:38
https://github.com/tursunovic/DMRNotificationView
DMRNotificationView
DMRNotificationView is a simple panel that slides down to inform the user about something. It has a title and subtitle (optional). You can set custom tint colors (automatically adds 0.85 transparency to tint color), fonts and dismiss interval.
Installation
- Add the
DMRNotificationView.h
+DMRNotificationView.m
to your project
Usage
Usage is pretty self-explanatory if you check the demo. DMRNotificationView can be used in different ways. It comes with a few convenience initializers which allow you to present the panel in one line of code. See the header file for more methods.
// The most basic method. [DMRNotificationView showInView:self.view title:@"Simple notification" subTitle:@"This method allows you to quickly show a notification panel."];// Use a similar method to show a warning [DMRNotificationView showWarningInView:self.view title:@"Warning!" subTitle:@"Simple method to quickly show a warning"];
You can use the default initialiser for advanced usage.
// Create a new DMRNotificationView instance with the default initializerDMRNotificationView *notificationView = [[DMRNotificationView alloc] initWithTitle:@"Some title" subTitle:@"Some subtitle" targetView:self.view];// Customise fonts[notificationView setTitleFont:[UIFont fontWithName:@"MarkerFelt-Thin" size:20.0]];[notificationView setSubTitleFont:[UIFont fontWithName:@"MarkerFelt-Thin" size:13.0]];// Customise the time interval which causes the panel to dismiss. Set to 0.0 to disable auto dismiss[notificationView setHideTimeInterval:6.0]; // Set a custom tint color. If tint color is bright, the text will be dark, otherwise white. Tint color can't be clearColor or nil[notificationView setTintColor:[UIColor greenColor]];// Optionally disable transparency[notificationView setIsTransparent:NO]; [notificationView setDidTapHandler:^() { // be notified when user taps on panel}];[notificationView showAnimated:YES];
Issues
- Layout issue when changing interface orientation
- Title can only be one line, no support for long titles
- [IOS消息提醒]--- DMRNotificationView
- [IOS]消息提醒--TSMessages
- [IOS消息提醒]--CMNavBarNotificationView
- [IOS消息提醒]---MPNotificationView
- [IOS 消息提醒]--状态栏FDStatusBarNotifierView
- [IOS 消息提醒]--状态条上提醒信息- WTStatusBar
- IOS下本地消息提醒UILocalNotification
- iOS关于聊天消息提醒铃声
- [IOS 消息提醒]--网络或操作的成功失败提醒AJNotificationView
- ios 提醒功能开发(应用后台运行消息提醒推送)
- 消息到达提醒功能
- [iIOS 消息提醒]--KGDiscreetAlertView
- 消息与提醒
- 添加本地消息提醒
- 未读消息提醒
- 消息提醒显示
- Notification消息提醒
- Android消息提醒
- C# 接口
- Oracle EBS 虚拟件库存测试(一)
- Check your hard disk for errors
- 串口通信校验方式(even,odd,space,mark)
- Triangular Sums
- [IOS消息提醒]--- DMRNotificationView
- 问题五十五: 输出10000以内的所有回文数
- 项目2-成员函数、友元函数和一般函数之区别
- 第7周任务2:成员、友元和一般函数的区别
- 1018 植树问题
- GDB调试精粹及使用实例
- 如何在jsp中实现时间的动态显示?
- PHP 字符串操作(一)
- c++中冒号(:)和双冒号(::)的用法