PXLActionSheet 1.0.2

PXLActionSheet 1.0.2

测试已测试
语言语言 Obj-CObjective C
许可 MIT
发布最后发布2014年12月

Jason Silberman维护。



  • Jason Silberman

UIActionSheet的可定制替换。

屏幕截图

Screenshot

为什么?

  1. 系统的UIActionSheet非常不可自定义。
  2. Blocks! Blocks! Blocks!

文档

您可以在Cocoadocs上查看文档。

添加到您的项目

开始使用PXLNetworking非常简单!您可以使用CocoaPods,或者可以手动操作。

手动

要将PXLNetworking手动添加到您的项目中

  1. PXLActionSheet/中的文件添加到您的项目中。

PXLNetworking需要ARC。

用法

PXLActionSheet非常简单。

  1. 创建一个PXLActionSheetTheme(或使用defaultTheme)。
  2. 创建并显示一个PXLActionSheet

以下是一个示例

[PXLActionSheet showInView:self.view withTheme:[PXLActionSheetTheme defaultTheme] title:@"A new customizable replacement for UIActionSheet." cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@[@"Custom Fonts", @"Custom Colors", @"And More!"] tapBlock:^(PXLActionSheet *actionSheet, NSInteger tappedButtonIndex) {
    NSLog(@"tapped at %ld", (long)tappedButtonIndex);
}];

非常简单,我知道!

许可

PXLActionSheet在MIT许可下可用。有关更多信息,请参阅LICENSE文件。