一个简单的微信底部弹出,使用简单,方便扩展。
NSArray *title = @[@"_codeBo", @"拍摄" , @"从相册选择"];
CWActionSheet *sheet = [[CWActionSheet alloc] initWithTitles:title clickAction:^(CWActionSheet *sheet, NSIndexPath *indexPath) {
NSLog(@"点击了%@", title[indexPath.row]);
self.label.text = title[indexPath.row];
}];
[sheet show];
详细实现请移步 GitHub