UUActionSheet 1.9

UUActionSheet 1.9

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Oct 2020

Maintained by LEA.



  • By
  • Cheery Lau

UUActionSheet

License MIT  CocoaPods  CocoaPods  Support 

自定义样式的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,谢谢🌹🌹