UUActionSheet
自定义样式的ActionSheet
,有点像WeChat或者新浪微博,使用方式和UIActionsheet
相同,代理也是仿照UIActionSheet
写的。
使用
pod "UUActionSheet"
;pod install
/pod update
;#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);
}
效果图
后记
不定时更新,如有问题欢迎给我留言,我会及时回复。如果这个工具对你有一些帮助,请给我一个star,谢谢