多种多样效果的状态栏提示

移动开发
demo可以提供多种多样的状态栏提示效果,可以控制状态提示从4个方向的进出,并有柔和或弹跳的效果,可以自定义提示内容。

源码简介

demo可以提供多种多样的状态栏提示效果,可以控制状态提示从4个方向的进出,并有柔和或弹跳的效果,可以自定义提示内容。

源码运行截图

\

源码片段:

  1. - (IBAction)btnShowNotificationPressed:(UIButton *)sender { 
  2.     [CRToastManager showNotificationWithOptions:[self options] 
  3.                                  apperanceBlock:^(void) { 
  4.                                      NSLog(@"Appeared"); 
  5.                                  } 
  6.                                 completionBlock:^(void) { 
  7.                                     NSLog(@"Completed"); 
  8.                                 }]; 
  9. - (IBAction)btnPrintIdentifiersPressed:(UIButton *)sender { 
  10.     NSLog(@"%@", [CRToastManager notificationIdentifiersInQueue]); 
  11.   
  12. - (IBAction)btnDismissNotificationPressed:(UIButton *)sender { 
  13.     [CRToastManager dismissNotification:YES]; 
  14. CRToastAnimationType CRToastAnimationTypeFromSegmentedControl(UISegmentedControl *segmentedControl) { 
  15.     return segmentedControl.selectedSegmentIndex == 0 ? CRToastAnimationTypeLinear : 
  16.            segmentedControl.selectedSegmentIndex == 1 ? CRToastAnimationTypeSpring : 
  17.            CRToastAnimationTypeGravity; 

源码链接:http://down.51cto.com/data/1983082

责任编辑:chenqingxiang 来源: 网络整理
相关推荐

2014-06-06 14:03:13

iOS状态栏提示控件原理

2016-11-29 11:20:08

Android

2009-06-17 14:40:55

Java网络编程连接数据库

2013-04-23 10:09:35

云计算亚马逊混合云

2021-07-22 23:40:15

数字人民币支付宝微信

2017-02-17 11:00:57

状态栏Android

2013-07-18 16:09:10

自定义iOS状态栏iOS开发iOS学习

2023-07-12 23:27:24

Powerline编辑器

2012-12-24 14:42:48

iOS自定义状态栏

2013-11-20 15:08:32

iOS开发状态栏

2017-12-05 12:44:57

Android沉浸式状态栏APP

2022-11-23 14:47:29

北向开发鸿蒙

2021-08-09 20:29:27

Android沉浸式状态栏

2021-06-15 15:04:38

Android 12安卓通话

2021-06-15 15:28:31

谷歌Android开发

2011-06-16 11:15:04

2012-08-09 09:20:33

Office 2013Publisher

2018-05-16 09:11:19

Android状态栏移动系统

2018-10-23 15:31:12

2018-03-09 12:12:25

macOSiOS苹果
点赞
收藏

51CTO技术栈公众号