從網(wǎng)上下載了Demo工程,用XCode7打開storyboard或xib文件報錯“ The document “(null)” requires Xcode 8.0 or later.” XCode不想升級版本,只好手工來解決了。
首先用文本編輯器打開storyboard或xib文件,或"open as source code";
然后刪除里面這一句;
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
- 刪除完打開還會報“com.apple.interfaceXXX”錯誤,那只能文件內(nèi)容一段段刪除來排除可能性。目前看XCode8增加了
displayP3特性,所以搜索把displayP3修改為sRGB即可。
在iOS10之前,UIColor中設(shè)置顏色只能通過RGB 來表示。在iOS原生還不支持#16進制寫法,還得自己寫分類去處理,我們知道RGB表示的顏色是優(yōu)先的,而且也是不精準(zhǔn)的,那么在iOS10中,蘋果官方新增了colorWithDisplayP3Red方法