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 - alexanderjarvis/PXAlertView: A drop-in replacement for UIAlertView that is more customisable and skinnable

BranchesTags
Open more actions menu

Latest commit

 

History

120 Commits
120 Commits

Folders and files

NameName
Last commit message
Last commit date
Classes
Classes
 
 
PXAlertViewDemo.xcodeproj
PXAlertViewDemo.xcodeproj
 
 
PXAlertViewDemo
PXAlertViewDemo
 
 
PXAlertViewDemoTests
PXAlertViewDemoTests
 
 
.gitignore
.gitignore
 
 
ExampleImage.png
ExampleImage.png
 
 
LICENSE
LICENSE
 
 
PXAlertView.podspec
PXAlertView.podspec
 
 
README.md
README.md
 
 
animation.gif
animation.gif
 
 

Repository files navigation

PXAlertView

PXAlertView is a UIAlertView replacement similar to the style in iOS 7 but with a block based API and the ability to customise the styling and add custom views.

Preview

Demo Animation

Features

  • Simple block syntax instead of delegates
  • Animations that match UIAlertView in iOS 7
  • Fully customisable
  • Add your own UIView beneath the title

Installation

Add the following to your CocoaPods Podfile

pod 'PXAlertView', '~> 0.1.0'

or clone as a git submodule,

or just copy PXAlertView.h and .m into your project.

Usage

See PXAlertView.h for the complete API.

An Example

[PXAlertView showAlertWithTitle:@"The Matrix"
                        message:@"Pick the Red pill, or the blue pill"
                    cancelTitle:@"Blue"
                     otherTitle:@"Red"
                     completion:^(BOOL cancelled, NSInteger buttonIndex) {
                         if (cancelled) {
                             NSLog(@"Cancel (Blue) button pressed");
                         } else {
                             NSLog(@"Other (Red) button pressed");
                         }
                     }];

TODO

  • Add style that matches iOS 7 exactly
  • Ability to dynamically specify the styling of AlertView: default/dark

License

PXAlertView is available under the MIT license. See the LICENSE file for more info.

About

A drop-in replacement for UIAlertView that is more customisable and skinnable

Resources

Readme
MIT license
Activity

Stars

589 stars

Watchers

17 watching

Forks

95 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — 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.