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

Save bidding costs and carry out bidding promotion effectively?

I believe many people are familiar with the curre...

Interesting Facts | What are the advantages of boys with long ring fingers?

One minute with the doctor, the postures are cons...

Analysis of 4 factors of Keep user experience!

A week ago, QuestMobile released the "China ...

Multi-style card stacking view--ZLSwipeableViewSwift

Source code introduction: It can realize the card...

Server rental for thousands of people online at the same time

When renting a server with thousands of people on...