UIActionSheet的可定制替换。
UIActionSheet
非常不可自定义。您可以在Cocoadocs上查看文档。
开始使用PXLNetworking非常简单!您可以使用CocoaPods,或者可以手动操作。
要将PXLNetworking手动添加到您的项目中
PXLActionSheet/
中的文件添加到您的项目中。PXLNetworking需要ARC。
PXLActionSheet非常简单。
PXLActionSheetTheme
(或使用defaultTheme)。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文件。