- 授权协议: MIT
- 开发语言: Swift
- 操作系统: iOS
- 软件首页: https://github.com/nghialv/Hakuba
软件介绍
Hakuba 是管理 UITableView 的新方式。
代码示例
// viewController swift file
hakuba = Hakuba(tableView: tableView)
let cellmodel = YourCellModel(title: "Title", des: "description") {
println("Did select cell with title = \(title)")
}
hakuba[2].append(cellmodel) // append a new cell model in datasource
.slide(.Fade) // show the cell of your cell model in the table view
hakuba[1].remove(1...3)
.slide(.Right)// your cell swift file
class YourCellModel : MYCellModel {
let title: String
let des: String
init(title: String, des: String, selectionHandler: MYSelectionHandler) {
self.title = title
self.des = des
super.init(YourCell.self, selectionHandler: selectionHandler)
}
}
class YourCell : MYTableViewCell {
@IBOutlet weak var titleLabel: UILabel!
override func configureCell(data: MYCellModel) {
super.configureCell(data)
if let cellmodel = data as? YourCellModel {
titleLabel.text = cellmodel.title
}
}
}MATLAB在数学建模中的应用
卓金武 编 / 北京航空航天大学 / 2011-4 / 34.80元
《MATLAB在数学建模中的应用》从数学建模的角度介绍了MATLAB的应用。《MATLAB在数学建模中的应用》的4位作者均具有实际的数学建模参赛经历和竞赛指导经验。书中内容完全是根据数学建模竞赛的需要而编排的,涵盖了绝大部分数学建模问题的MATLAB求解方法。 《MATLAB在数学建模中的应用》内容分上下两篇。上篇介绍数学建模中常规方法MATLAB的实现,包括MATLAB交互、数据建模、程序......一起来看看 《MATLAB在数学建模中的应用》 这本书的介绍吧!
