Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/luobin23628/alert-actionsheet

自定义AlertView和ActionSheet
https://github.com/luobin23628/alert-actionsheet

Last synced: 2 months ago
JSON representation

自定义AlertView和ActionSheet

Awesome Lists containing this project

README

        

# Alert-ActionSheet
自定义AlertView和ActionSheet
==========

This library provides an alternative to the native iOS alertView & actionSheet, support customize the look and feel of the alertView.

alt text _
alt text

alt text

##Installation

### CocoaPods
Add pod 'TKAlert&TKActionSheet' to your Podfile or pod 'TKAlert&TKActionSheet', :head if you're feeling adventurous.

### Manually
* Drag the `TKAlert&TKActionSheet` folder into your project.

##Features
* Compatible with ios 5+
* Works like system alert.
* Runs on both iPhone and iPad.
* Customize the look of alert.
* Automatic orientation.
* MIT License (you can use it for commercial apps, edit and redistribute).

## Usage
Let's start with a simple example

```objective-c
TKAlertViewController *alert = [TKAlertViewController alertWithTitle:@"test" message:@"自定义AlertView和ActionSheet. cocoapads 使用 pod 'TKAlert&TKActionSheet', '~>1.0.1'"];
[alert addButtonWithTitle:@"ok" handler:^{

}];
[alert addButtonWithTitle:@"cancel" handler:nil];
alert.dismissWhenTapWindow = YES;
[alert showWithAnimationType:TKAlertViewAnimationPathStyle];
```
## Maintainers

- [LuoBin](https://github.com/luobin23628) ([Email:[email protected]](mailto:[email protected]?subject=TKKeyboard))

## License

Alert-ActionSheet is available under MIT license. See the LICENSE file for more info.