Xcode 13中,在stroyboard拉一個(gè)新的UIButton,會(huì)新增一個(gè)警告??:.storyboard: warning: Attribute Unavailable: Button Style before iOS 15.0, 這是它默認(rèn)的Style為Plain了,因?yàn)閕OS 15中,UIButton有做一些UI改動(dòng)(具體改動(dòng)內(nèi)容自行搜索),它就默認(rèn)用了新的屬性。
解決:把Plain改回Default即可。

操作示意圖.png