SGActionViewiOS 弹出视图控件
介绍
SGActionView提供三种弹出视图:
使用
引入SGActionView.h
提示框:
[SGActionView showAlertWithTitle:@"Title" message:@"Message" buttonTitle:@"Cancel" selectedHandle:nil];
选项列表:
[SGActionView showSheetWithTitle:@"Sheet View" itemTitles:@[ @"Wedding Bell", @"I'm Yours", @"When I was your mam" ] itemSubTitles:@[ @"Depapepe - Let's go!!!", @"Jason Mraz", @"Bruno Mars" ] selectedIndex:0 selectedHandle:nil];
分享:
[SGActionView showGridMenuWithTitle:@"Grid View" itemTitles:@[ @"Facebook", @"Twitter", @"Google+", @"Linkedin", @"weibo", @"wechat", @"Pocket", @"Dropbox" ] images:@[ [UIImage imageNamed:@"facebook"], [UIImage imageNamed:@"twitter"], [UIImage imageNamed:@"googleplus"], [UIImage imageNamed:@"linkedin"], [UIImage imageNamed:@"weibo"], [UIImage imageNamed:@"wechat"], [UIImage imageNamed:@"pocket"], [UIImage imageNamed:@"dropbox"]] selectedHandle:nil];
评论