Skip to content

luobin23628/Alert-ActionSheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

    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

License

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

About

自定义AlertView和ActionSheet

Resources

License

Stars

Watchers

Forks

Packages

No packages published