一個(gè)簡(jiǎn)單的微信底部彈出鸭栖,使用簡(jiǎn)單只损,方便擴(kuò)展。
NSArray *title = @[@"_codeBo", @"拍攝" , @"從相冊(cè)選擇"];
CWActionSheet *sheet = [[CWActionSheet alloc] initWithTitles:title clickAction:^(CWActionSheet *sheet, NSIndexPath *indexPath) {
NSLog(@"點(diǎn)擊了%@", title[indexPath.row]);
self.label.text = title[indexPath.row];
}];
[sheet show];
彈出GIF.gif
詳細(xì)實(shí)現(xiàn)請(qǐng)移步 GitHub