iOS图片选择器:BRNImagePickerSheet
jopen
10年前
BRNImagePickerSheet是一款模仿iOS8's iMessage的图片选择器。在选项列表视图中可以滚动显示待选图片。
使用方法:
//遵守BRNImagePickerSheetDelegate协议: class ViewController: UIViewController, BRNImagePickerSheetDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate //创建BRNImagePickerSheet对象并初始化: var sheet = BRNImagePickerSheet() sheet.addButtonWithTitle("Take Photo Or Video", singularSecondaryTitle: "Add Comment", pluralSecondaryTitle: nil) sheet.addButtonWithTitle("Photo Library", singularSecondaryTitle: "Send \(placeholder) Photo", pluralSecondaryTitle: "Send \(placeholder) Photos") sheet.delegate = self sheet.showInView(self.view)