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

Why is Kunqu Opera the “ancestor of all operas”?

Kunqu Opera is the most representative national a...

You are such a fan! !

As the saying goes, where there are people, there...

Practical Manual丨8 Keywords for Community Operation

With the popularity of private domain traffic thi...

List of 7 essential promotion skills for operators!

Promotional methods + operational knowledge = imp...

A fish has two "hands", and it can't swim, so it has to "walk"?

If someone asks you: Are there any fish that can&...

How to welcome the New Year safely? Please take these health tips

New Year's Day is coming, how do you plan to ...

Families, please type "Protect Human Relatives" on the public screen

Produced by: Science Popularization China Produce...

Setting up the environment for decompiling Android apps on Mac OS

[[144520]] Often, for the purpose of learning or ...

Girl, why do you want to program?

As a girl, you can get a pair of blingbling nails...

Is 6GB of RAM necessary for Android phones?

In recent years, the hardware configuration of mob...