# 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](animation.gif)
## 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](http://cocoapods.org/) Podfile
pod 'PXAlertView', '~> 0.0.6'
or clone as a git submodule,
or just copy ```PXAlertView.h``` and ```.m``` into your project.
## Usage
See [PXAlertView.h](Classes/PXAlertView.h) for the complete API.
### An Example
```Objective-C
[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
* Allow usage using the same API methods as UIAlertView and delegate.
## License
PXAlertView is available under the MIT license. See the LICENSE file for more info.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
PXAlertView-扩展完成的.zip (34个子文件)
PXAlertView-扩展完成的
.gitignore 214B
animation.gif 391KB
README.md 1KB
PXAlertViewDemo
PXAppDelegate.h 1KB
PXAlertViewDemo-Prefix.pch 344B
PXAlertViewDemo-Info.plist 1KB
PXAppDelegate.m 2KB
en.lproj
Main_iPhone.storyboard 9KB
Main_iPad.storyboard 3KB
InfoPlist.strings 45B
PXViewController.m 7KB
main.m 355B
Images.xcassets
LaunchImage.launchimage
Contents.json 1KB
AppIcon.appiconset
Contents.json 825B
PXViewController.h 1KB
LICENSE 1KB
PXAlertView.podspec 745B
PXAlertViewDemo.xcodeproj
project.xcworkspace
contents.xcworkspacedata 160B
xcuserdata
housl.xcuserdatad
UserInterfaceState.xcuserstate 42KB
project.pbxproj 23KB
xcuserdata
housl.xcuserdatad
xcschemes
PXAlertViewDemo.xcscheme 4KB
xcschememanagement.plist 577B
xcdebugger
Breakpoints_v2.xcbkptlist 91B
alex.xcuserdatad
xcschemes
PXAlertViewDemo.xcscheme 4KB
xcschememanagement.plist 577B
PXAlertViewDemoTests
PXAlertViewDemoTests-Info.plist 694B
en.lproj
InfoPlist.strings 45B
PXAlertViewDemoTests.m 668B
.DS_Store 6KB
ExampleImage.png 3KB
Classes
PXAlertView+Customization.h 593B
PXAlertView.m 25KB
PXAlertView.h 3KB
PXAlertView+Customization.m 2KB
共 34 条
- 1
资源评论
sqq521
- 粉丝: 22
- 资源: 19
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功