Status bar prompts with various effects

Status bar prompts with various effects

Source code introduction

The demo can provide a variety of status bar prompt effects. You can control the status prompt to enter and exit from 4 directions, with soft or bouncing effects, and you can customize the prompt content.

Source code running screenshot

\

Source code snippet:

  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. }
  10. - (IBAction)btnPrintIdentifiersPressed:(UIButton *)sender {
  11. NSLog(@ "%@" , [CRToastManager notificationIdentifiersInQueue]);
  12. }
  13.   
  14. - (IBAction)btnDismissNotificationPressed:(UIButton *)sender {
  15. [CRToastManager dismissNotification:YES];
  16. }
  17. CRToastAnimationType CRToastAnimationTypeFromSegmentedControl(UISegmentedControl *segmentedControl) {
  18. return segmentedControl.selectedSegmentIndex == 0 ? CRToastAnimationTypeLinear :
  19. segmentedControl.selectedSegmentIndex == 1 ? CRToastAnimationTypeSpring :
  20. CRToastAnimationTypeGravity;
  21. }

Source code link: http://download..com/data/1983082

<<:  CircleList (arc-shaped ListView)

>>:  Custom menu management-custom menu creation interface

Recommend

Liu Minghao analyzes JD Finance's Zeus security defense platform

I am very happy to have the opportunity to share ...

Volvo abandons merger with Geely and will seek independent listing

The previous merger plan of China's Geely Aut...

Douyin product selection strategy that novices must read

What is the most profitable thing to sell in Douy...

Methods and techniques for creating private traffic pools!

Private domain traffic is becoming more and more ...

APP promotion: digging into those niche promotion channels

[[145610]] There are many articles about App prom...

Does lying really pay off? Research shows: Yes!

A little-known fact: In daily life, people actual...

90% of “node marketing” is good idea, bad marketing

This article is reproduced from the public accoun...