This library provides an alternative to the native iOS alertView & actionSheet, support customize the look and feel of the alertView.
##Installation
Add pod 'TKAlert&TKActionSheet' to your Podfile or pod 'TKAlert&TKActionSheet', :head if you're feeling adventurous.
- 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).
Let's start with a simple example
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];
Alert-ActionSheet is available under MIT license. See the LICENSE file for more info.