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

Drools rule engine practice

Part 1 Rules Engine Rule engine: The full name is...

Representatives suggest: Substantially reduce WeChat payment fees

[[384746]] Regardless of the field, handling fees...

Insights into female marketing trends!

With the development and penetration of mobile In...

The report says that Android will account for 82.6% of the market share in 2019

The competition between iOS and Android has enter...

Luoyang! Luoyang!

Luoyang A name that goes deep into the Chinese sp...

8 Tips for Optimizing App Store Keyword Rankings

In terms of ASO, it is similar to SEO and has a s...

Can I put the leftover mooncakes in the refrigerator?

The Mid-Autumn Festival holiday is over Most peop...