iOS 网格视图 ALGridView

码农软件 · 软件分类 · 视图布局(View Layout) · 2019-06-23 08:43:13

软件介绍

ALGridView 是使用 Swift 编写的简单网格视图。

//-- Full initializer (passing margins, padding)
let frame = CGRect(x: 10.0, y: 10.0, width: 200.0, height: 200.0)
let margins = UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10)
let gridView = GridView(frame: frame, columns: 3, rows: 3, margins: margins, padding: 10) {
    column, row, contentView in
    let view = UIView(frame: contentView.bounds)
    view.backgroundColor = UIColor.blueColor()
    contentView.addView(view)
}
someView.addSubview(gridView)
//-- Simplified initializer (frame, columns, rows and constructor closure)
let gridView = GridView(frame: frame, columns: 3, rows: 3) {
    column, row, contentView in
    //.. constructor code


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

Data Structures and Algorithms in Python

Data Structures and Algorithms in Python

Michael T. Goodrich、Roberto Tamassia、Michael H. Goldwasser / John Wiley & Sons / 2013-7-5 / GBP 121.23

Based on the authors' market leading data structures books in Java and C++, this book offers a comprehensive, definitive introduction to data structures in Python by authoritative authors. Data Struct......一起来看看 《Data Structures and Algorithms in Python》 这本书的介绍吧!

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

在线压缩/解压 HTML 代码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具