iOS 图片选择器 BRNImagePickerSheet
- 授权协议: MIT
- 开发语言: Objective-C
- 操作系统: iOS
- 软件首页: https://github.com/larcus94/BRNImagePickerSheet
软件介绍
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)
}
}
}
Python 3面向对象编程
[加]Dusty Phillips(达斯帝•菲利普斯) / 肖鹏、常贺、石琳 / 电子工业出版社 / 2015-6 / 79.00元
Python 是一种面向对象的解释型语言,面向对象是其非常重要的特性。《Python 3面向对象编程》通过Python 的数据结构、语法、设计模式,从简单到复杂,从初级到高级,一步步通过例子来展示了Python 中面向对象的概念和原则。 《Python 3面向对象编程》不是Python 的入门书籍,适合具有Python 基础经验的开发人员阅读。如果你拥有其他面向对象语言的经验,你会更容易理解......一起来看看 《Python 3面向对象编程》 这本书的介绍吧!
