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

360 N7 mobile phone review: a powerful PUBG mobile phone

For several years, 360 mobile phones have been fo...

What to do if there are multiple domain names?

The following situations are all considered reaso...

She lived a hundred years, leaving behind spirit and legend

A sad news came Qu Duyi, winner of the "July...

Those who worry that advertising is ineffective usually misunderstand marketing.

Most disputes over advertising exposure and effec...

After 8 years, 16 Crested Ibis returned home! Why did they go abroad?

"The graceful crested ibis comes to the spri...

How does the self-media economy achieve IP creation and traffic monetization?

This is an era of the Internet, and even more so ...

Ledgers, Hounds, and Boars

Wang Youqin lost confidence in farming after thre...

20 Best JavaScript Charting Libraries

Every business tends to do data analysis when mak...

A look into the 2022 Nobel Prize: How did humans come into being?

At 11:30 a.m. on October 3, 2022, local time in S...