一直觉得自己写的不是技术,而是情怀,一个个的教程是自己这一路走来的痕迹。靠专业技能的成功是最具可复制性的,希望我的这条路能让你们少走弯路,希望我能帮你们抹去知识的蒙尘,希望我能帮你们理清知识的脉络,希望未来技术之巅上有你们也有我。
Swift 项目底层框架(万能)
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/0379d22808ed5990360e0cf42b85b3ff.png)
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/d3420ca169d89e0b4a8078bcfc14b43f.png)
import UIKit
class ViewController: UIViewController {
let currentView = UnequalBtnLayoutView().then { (item) in
item.collection.cellHeight = 25
item.collection.columnsCount = 4
item.collectionView.backgroundColor = Color.white
item.cellMessage.cellBackgroundColor = Color.white
item.cellMessage.controlBackgroundColor = Color.white
item.cellMessage.controlWordsColor = Color.theme
item.cellMessage.controlUIFont = Font.font14
item.cellMessage.controlBorderColor = Color.theme.cgColor
item.cellMessage.controlCornerRadius = 4
item.cellMessage.controlBorderWidth = 1
}
override func viewDidLoad() {
super.viewDidLoad()
view.backgroundColor = UIColor.white
currentView.list = ["cell的高度","cell的行数","Collection","View","的背景颜色","不用设置","cell","背景颜色","控件背景颜色","文字颜色","文字颜色","文字大小","边框颜色","圆弧半径","边框宽度"]
view.addSubview(currentView)
currentView.snp.makeConstraints { (make) in
make.top.equalToSuperview().offset(50)
make.width.equalToSuperview()
make.height.equalTo(currentView.viewHeight)
make.centerX.equalToSuperview()
}
currentView.modelCallBlock = { (_ index:Int?, _ modelName:String?) -> () in
}
}
}