Git
如果不小心commit了一個(gè)不需要commit的文件,可以對(duì)其進(jìn)行撤銷。
先使用git log 查看 commit日志
git reset --hard commit_id
任務(wù)
使用tableview完成頁面
創(chuàng)建一個(gè)View 里面放cell.xib&swift class 定義cell里需要使用的UI
tip:
全局?使用可選類型定義 在其他情況可以調(diào)用得到
需要初始化init()
let cell = ValuationServicesTableViewCell(style: .default, reuseIdentifier: String(describing: ValuationServicesTableViewCell.self))
對(duì)各個(gè)UI進(jìn)行配置
對(duì)顏色的定義(歸類在config)
對(duì)各個(gè)UI位置進(jìn)行設(shè)置(使用snapkit)
創(chuàng)建controller.xib&swift 在 保價(jià)服務(wù) 下
1.class里引入
UITableViewDelegate, UITableViewDataSource
因?yàn)橐肓?UITableViewDataSource 所以會(huì)默認(rèn)生成兩個(gè)func
在這兩個(gè)func里完成section內(nèi) 行row 數(shù) 和 cell里內(nèi)容的配置
由于使用了自定義cell 所以
let cell = ValuationServicesTableViewCell(style: .default, reuseIdentifier: String(describing: ValuationServicesTableViewCell.self))
在之前對(duì)tableview配置時(shí)需要 delegate, register, dataSource
對(duì)cell的describing進(jìn)行string轉(zhuǎn)換
String(describing: ValuationServicesTableViewCell.self)
完成頁面
明日目標(biāo)
訂單支付
學(xué)習(xí)swift