Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luobin23628/alert-actionsheet
自定义AlertView和ActionSheet
https://github.com/luobin23628/alert-actionsheet
Last synced: 2 months ago
JSON representation
自定义AlertView和ActionSheet
- Host: GitHub
- URL: https://github.com/luobin23628/alert-actionsheet
- Owner: luobin23628
- License: mit
- Created: 2015-06-05T07:27:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-12-26T12:14:07.000Z (about 5 years ago)
- Last Synced: 2024-10-30T06:36:34.550Z (2 months ago)
- Language: Objective-C
- Size: 5.52 MB
- Stars: 12
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.
_
##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.