'NSInternalInconsistencyException', reason: '<NSISEngine: 0x16d5ef10>...
http://stackoverflow.com/questions/28111635/ios-aspect-ratio-constraint-breaks-on-ios7-works-on-ios8
這好像是ios7.1的bug,對浮點數計算有誤,一般添加按鈕比例約束的時候multiplier值都是這種格式6:10 ,這樣可能系統會精確的計算小數點吧.寫成0.7就好了.
?
- 崩潰信息:
'Unable to create description in descriptionForLayoutAttribute_layoutItem_coefficient. Something is nil'
- 原因
因為偷懶使用了reset to suggested constraints, autolayout 幫我自動加了baseline的constraints,而baseline只有iOS8以后才有,兼容iOS7就崩潰了,直接移除baseline相關的constraint即可。 - 參考鏈接
http://stackoverflow.com/questions/26024906/unable-to-create-description-in-descriptionforlayoutattribute-layoutitem-coeffi/26045383#2604538 - 按照老外的方法,把所有可能會出現bug的xib拖到文本編輯器sublime text2中,在條件表達式中加入.*"baseline".*\n?把高亮的全部刪掉,回到xib重做
- 可能還不行,是因為調試緩存xib的問題,把程序卸載了,command + k ,command + r 重新運行一次
- 崩潰信息: