Git
如果不小心commit了一個不需要commit的文件,可以對其進行撤銷。
先使用git log 查看 commit日志
git reset --hard commit_id
任務(wù)
使用tableview完成頁面
創(chuàng)建一個View 里面放cell.xib&swift class 定義cell里需要使用的UI

tip:
全局?使用可選類型定義 在其他情況可以調(diào)用得到
需要初始化init()
let cell = ValuationServicesTableViewCell(style: .default, reuseIdentifier: String(describing: ValuationServicesTableViewCell.self))
對各個UI進行配置

對顏色的定義(歸類在config)

對各個UI位置進行設(shè)置(使用snapkit)

創(chuàng)建controller.xib&swift 在 保價服務(wù) 下
1.class里引入
UITableViewDelegate, UITableViewDataSource
因為引入了 UITableViewDataSource 所以會默認生成兩個func

在這兩個func里完成section內(nèi) 行row 數(shù) 和 cell里內(nèi)容的配置
由于使用了自定義cell 所以
let cell = ValuationServicesTableViewCell(style: .default, reuseIdentifier: String(describing: ValuationServicesTableViewCell.self))
在之前對tableview配置時需要 delegate, register, dataSource

對cell的describing進行string轉(zhuǎn)換
String(describing: ValuationServicesTableViewCell.self)
完成頁面


明日目標
訂單支付
學(xué)習(xí)swift