UUActionSheet 1.9

UUActionSheet 1.9

测试已测试
语言语言 Obj-CObjective C
许可 MIT
发布上次发布2020年10月

LEA 维护。



  • 作者
  • Cherry Lau

UUActionSheet

License MIT  CocoaPods  CocoaPods  支持 

自定义样式的ActionSheet,有点像WeChat或者新浪微博,使用方式和UIActionSheet相同,代理也是仿照UIActionSheet编写的。

使用

  1. pod "UUActionSheet";
  2. pod install / pod update;
  3. #import <UUActionSheet.h>.

示例

UUActionSheet *actionSheet = [[UUActionSheet alloc] initWithTitle:@"退出后不会删除任何历史数据,下次登录依然可以使用本账号。"
                                                         delegate:self
                                                cancelButtonTitle:@"取消"
                                           destructiveButtonTitle:@"退出登录"
                                                otherButtonTitles:@"换账号登录",nil];
[actionSheet showInView:self.view.window];
#pragma mark - UUActionSheetDelegate
- (void)actionSheet:(UUActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
{
    NSLog(@"buttonIndex:%ld",buttonIndex);
}

效果图

UUActionSheet

后记

不定时更新,如有问题欢迎给我留言,我会及时回复。如果这个工具对你有一些帮助,请给我一个star,谢谢🌹🌹