1.UISearchController上的SearchBar顯示異常,高度變?yōu)橹挥?px纳猫。
解決方法:解決辦法是使用KVO監(jiān)聽(tīng)frame值變化后設(shè)置去應(yīng)該顯示的高度虱岂。
2.iOS13禁止使用valueForKey、setValue: forKey的方式獲取和設(shè)置私有屬性台舱,會(huì)引起crash律杠。
解決方法:使用其他方法替換。
3.TabBar上設(shè)置的紅點(diǎn)會(huì)偏移到左上方竞惋。遍歷UITabBarButton的subViews發(fā)現(xiàn)只有在TabBar選中狀態(tài)下才能取到UITabBarSwappableImageView
解決方法:在選中狀態(tài)下對(duì)tabbar 設(shè)置 [tabBar layoutIfNeeded];
4.控制器的 modalPresentationStyle 默認(rèn)值變了 變?yōu)閁IModalPresentationFullScreen;
解決方法:接受這種交互方式就不用做改動(dòng)柜去,如果想回復(fù)到之前的交互方式請(qǐng)直接設(shè)置:self.modalPresentationStyle = UIModalPresentationOverFullScreen;(注意:圖片編輯器的類(lèi)別可能需要設(shè)置一下self.modalPresentationStyle =UIModalPresentationFullScreen,否則有不能編輯圖片的bug2鹜稹Iど荨!)
5.MPMoviePlayerController在iOS13中不能使用
解決方法:尋找可替帶的sdk控件浑厚。
6.iOS13講通過(guò)LaunchScreen來(lái)取代LaunchImage來(lái)設(shè)置啟動(dòng)圖股耽。
7.iOS13新增暗黑模式,沒(méi)有適配暗黑模式前钳幅,請(qǐng)先禁用:在info.plist文件中UIUserInterfaceStyle設(shè)置為light物蝙。