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

How to plan an efficient App marketing operation plan!

In recent years, mobile Internet has developed ra...

Why is it said that reading articles about operations online is useless?

If you log on to major product operation websites...

Nan Ge's class "Fifth Shooting and Editing Training Camp" course video

The course comes from the Red Planet of Departure...

User operation: How to perform user segmentation reasonably?

User stratification is the result of business ope...

up to date! Data rankings of 59 information flow advertising platforms!

The following is the latest traffic ranking of 59...

Durex teaches you new ways of IP marketing

Just search for "gift box" on Taobao an...