自定义样式的ActionSheet
,有点像WeChat或者新浪微博,使用方式和UIActionsheet
相同,代理也是仿照UIActionSheet
写的。
pod "UUActionSheet"
;pod install
/pod update
;#import <UUActionSheet.h>
.
示例:
UUActionSheet *actionSheet = [[UUActionSheet alloc] initWithTitle:@"After the exit will not delete any historical data, the next login can still use this account."
delegate:self
cancelButtonTitle:@"Cancel"
destructiveButtonTitle:@"Logout"
otherButtonTitles:@"Okay",nil];
[actionSheet showInView:self.view.window];
#pragma mark - UUActionSheetDelegate
- (void)actionSheet:(UUActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
{
NSLog(@"buttonIndex:%ld",buttonIndex);
}
不定时更新,如有问题欢迎给我留言,我会及时回复。如果这个工具对你有一些帮助,请给我一个star,谢谢。