SnappingStepper
- 授权协议: MIT
- 开发语言: Swift
- 操作系统: iOS
- 软件首页: https://github.com/YannickL/SnappingStepper
软件介绍
SnappingStepper 是用 Swift 写成的一个 UIStepper 的优雅的替代品,有拇指滑块,可更加灵活地控制数值更新。
使用示例:
let stepper = SnappingStepper(frame: CGRectMake(0, 0, 100, 40))
override func viewDidLoad() {
super.viewDidLoad()
// Configure the stepper like any other UIStepper. For example:
//
// stepper.continuous = true
// stepper.autorepeat = true
// stepper.wraps = false
// stepper.minimumValue = 0
// stepper.maximumValue = 100
// stepper.stepValue = 1
stepper.font = UIFont(name: "TrebuchetMS-Bold", size: 20)
stepper.fontColor = UIColor.blackColor()
stepper.backgroundColor = UIColor.redColor()
stepper.thumbColor = UIColor.orangeColor()
stepper.addTarget(self, action: "valueChanged:", forControlEvents: .ValueChanged)
// If you don't want using the traditional `addTarget:action:` pattern you can use
// the `valueChangedBlock`
// snappingStepper.valueChangeBlock = { (value: Double) in
// println("value: \(value)")
// }
view.addSubview(stepper)
}
func valueChanged(sender: AnyObject) {
// Retrieve the value: stepper.value
}游戏编程中的人工智能技术
布克兰德 / 吴祖增 / 清华大学出版社 / 2006-5 / 39.0
《游戏编程中的人工智能技术》是人工智能游戏编程的一本指南性读物,介绍在游戏开发中怎样应用遗传算法和人工神经网络来创建电脑游戏中所需要的人工智能。书中包含了许多实用例子,所有例子的完整源码和可执行程序都能在随书附带的光盘上找到。光盘中还有不少其他方面的游戏开发资料和一个赛车游戏演示软件。 《游戏编程中的人工智能技术》适合遗传算法和人工神经网络等人工智能技术的各行业人员,特别是要实际动手做应用开......一起来看看 《游戏编程中的人工智能技术》 这本书的介绍吧!

