TKAlert&TKActionSheet 1.1.1

TKAlert&TKActionSheet 1.1.1

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布最后发布2017年1月

luobin 维护。



  • luobin

Alert-ActionSheet

自定义AlertView和ActionSheet

此库为原生 iOS alertView & actionSheet 提供了替代方案,支持自定义 alertView 的外观。

alt text _ alt text

alt text

##安装

CocoaPods

将 pod 'TKAlert&TKActionSheet' 添加到您的 Podfile,或如果您愿意尝试 risky things,则添加 pod 'TKAlert&TKActionSheet', :head。

手动

  • TKAlert&TKActionSheet 文件夹拖动到您的项目中。

##特性

  • 兼容 ios 5+
  • 与系统 alert 一样的功能。
  • 在 iPhone 和 iPad 上均运行。
  • 自定义 alert 的外观。
  • 自动方向调整。
  • MIT许可证(您可以用它用于商业应用,编辑和重新分发)。

用法

让我们从一个简单的例子开始

    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];

维护者

  • LuoBin (邮箱:[email protected]

许可证

Alert-ActionSheet使用MIT许可证。更多信息请参阅LICENSE文件。