iOS 图片选择器 BRNImagePickerSheet

码农软件 · 软件分类 · 选择器(Picker) · 2019-06-06 20:27:45

软件介绍

BRNImagePickerSheet是一款模仿iOS8's iMessage的图片选择器。在选项列表视图中可以滚动显示待选图片。 

示例代码:

let placeholder = BRNImagePickerSheet.selectedPhotoCountPlaceholder
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)

func imagePickerSheet(imagePickerSheet: BRNImagePickerSheet, willDismissWithButtonIndex buttonIndex: Int) {
    if buttonIndex != imagePickerSheet.cancelButtonIndex {
        if imagePickerSheet.showsSecondaryTitles {
            println(imagePickerSheet.selectedPhotos)
        }
    else {
        let controller = UIImagePickerController()
        controller.delegate = self
        controller.sourceType = (buttonIndex == 2) ? .PhotoLibrary : .Camera
        self.presentViewController(controller, animated: true, completion: nil)
        }
    }
}

本文地址:https://codercto.com/soft/d/7406.html

Squid: The Definitive Guide

Squid: The Definitive Guide

Duane Wessels / O'Reilly Media / 2004 / $44.95 US, $65.95 CA, £31.95 UK

Squid is the most popular Web caching software in use today, and it works on a variety of platforms including Linux, FreeBSD, and Windows. Squid improves network performance by reducing the amount of......一起来看看 《Squid: The Definitive Guide》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

html转js在线工具
html转js在线工具

html转js在线工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换