Skip to content

Instantly share code, notes, and snippets.

View cedared's full-sized avatar

Albert Young cedared

  • Shen Zhen. China
View GitHub Profile
class CategoryView: UIView {
var categoryButtonArray: Array<UIButton> = []
let buttonHeight = 35.0
let buttonWidth = Double(screenWidth / 5)
var buttonLeft = 0.0
var httpHelper = HttpHelper()
init(categoryInfos: NSMutableOrderedSet) {
super.init(frame: CGRect(x: 0.0, y: 0.0, width: Double(screenWidth), height: buttonHeight * 2))