以下條目是 iOS 13.0 對(duì)比 iOS 12.3.1 上的表現(xiàn)得出的:
1、開(kāi)啟大標(biāo)題模式后,導(dǎo)航欄分割線會(huì)消失,未開(kāi)啟大標(biāo)題則分割線還是存在;
2、導(dǎo)航欄上添加了搜索框,當(dāng) collectionview 的內(nèi)容不足一屏顯示時(shí),搜索框無(wú)法隱藏;
3、當(dāng)開(kāi)啟大標(biāo)題模式后,tableView 若設(shè)置成 grouped 樣式,則第一個(gè)表頭間隔會(huì)消失。若還想要原先的效果,則必須要實(shí)現(xiàn):
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
return 35.0
}
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
return nil
}
若已經(jīng)實(shí)現(xiàn)了如下代理方法則不受影響:
func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
// ...
}
非大標(biāo)題模式下不變。
4、默認(rèn)模態(tài)彈出的 modalPresentationStyle 發(fā)生了改變(.automatic),注意這種彈出方式下,presentingVC的viewWillDisappear和viewDidDisappear不會(huì)觸發(fā),且若你需要在presentedVC的dismiss按鈕中做一些事情才能關(guān)閉presentedVC的話,請(qǐng)不要使用這個(gè)新的方式,因?yàn)榇藭r(shí)手勢(shì)下滑即可關(guān)閉presentedVC。
持續(xù)測(cè)試中...