GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - fansyfs/XYAlertView: Customized alertView / loadingView for replacing UIAlertView. This component is part of iPhone application DouDouYou兜兜友 (http://ddy.me), which is available on http://itunes.apple.com/us/app/dou-dou-you/id379405145?mt=8.

BranchesTags
Open more actions menu

Latest commit

 

History

17 Commits
17 Commits

Folders and files

NameName
Last commit message
Last commit date
XYAlertView
XYAlertView
 
 
XYAlertViewDemo.xcodeproj
XYAlertViewDemo.xcodeproj
 
 
XYAlertViewDemo
XYAlertViewDemo
 
 
.gitignore
.gitignore
 
 
[email protected]
[email protected]
 
 
README.md
README.md
 
 

Repository files navigation

XYAlertView

Customized alertView / loadingView for replacing UIAlertView. Support display queue, you will never miss any alert/loading view. This component is part of the most popular social network in China, DouDouYou兜兜友 (http://ddy.me), which is available download at http://itunes.apple.com/us/app/dou-dou-you/id379405145?mt=8.

How to use

  1. import XYAlertViewHeader.h in your prefix file.
  2. invoke XYShowAlert(@"Hello!") anywhere in your code to popup the alert view.

Cases

  • completely way to create a customized alert view with block.

// create an alertView
XYAlertView *alertView = [XYAlertView alertViewWithTitle:@"Hello!"
                                                 message:@"This's the single alert view demo!"
                                                 buttons:[NSArray arrayWithObjects:@"Ok", @"Cancel", nil]
                                            afterDismiss:^(int buttonIndex) {
                                                NSLog(@"button index: %d pressed!", buttonIndex);
                                            }];

// set the second button as gray style
[alertView setButtonStyle:XYButtonStyleGray atIndex:1];

// display
[alertView show];
  • show a loading view and dismiss after 5 seconds

// create a loading view and show up
XYLoadingView *loadingView = [XYLoadingView loadingViewWithMessage:@"Loading will complete in 5 seconds..."];
[loadingView show];

// different way to show a loading view
// XYLoadingView *loadingView = XYShowLoading(@"Loading will complete in 5 seconds...");

// dismiss loading view with popup message after 5 seconds
[loadingView performSelector:@selector(dismissWithMessage:) withObject:@"The message comes out once loading view gone." afterDelay:5];
  • also you can popup more than one alert view in single call, them will come out one by one without any missing

XYShowAlert(@"Hello! This is the first alertView");
XYShowAlert(@"I'm second one.");
XYShowAlert(@"This's the simply way to show an alert!");
  • the text input in popup alert view
XYInputView *inputView = [XYInputView inputViewWithPlaceholder:@"Please input something here..."
                                                       initialText:nil buttons:[NSArray arrayWithObjects:@"Cancel", @"Done", nil]
                                                      afterDismiss:^(int buttonIndex, NSString *text) {
                                                          if(buttonIndex == 1)
                                                              NSLog(@"text: %@", text);
                                                      }];
[inputView show];

Other open source

iOS emoji keyboard view TSEmojiView.

Contact me

  • email: [email protected]
  • msn: [email protected]

About

Customized alertView / loadingView for replacing UIAlertView. This component is part of iPhone application DouDouYou兜兜友 (http://ddy.me), which is available on http://itunes.apple.com/us/app/dou-dou-you/id379405145?mt=8.

itunes.apple.com/us/app/dou-dou-you/id379405145?mt=8

Resources

Readme
Activity

Stars

47 stars

Watchers

5 watching

Forks

16 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.