[問題] Jailbreak JB造成的crash 系統字體
我原先以為只是一個無法重製的bug,
不過最近Crashlytics告訴我被影響的使用者越來越多,
而且我發現全部會crash的使用者都來自jailbreak的iOS6,
我想請教大家有沒有遇過和字體有關的crash。
我的猜測是使用者有用jb而且有改字體,兩個crash的內容如下:
http://crashes.to/s/96facdd8c3a
http://crashes.to/s/30a55faaa9f
都是在內建的CoreGraphics 呼叫 CGFontGetGlyphAdvances 造成的。
在最近一個版本新加、可能造成crash的頁面有這幾行code
self.amountIndicator.font = [UIFont systemFontOfSize:13];
self.amountIndicator.adjustsFontSizeToFitWidth = YES;
self.amountIndicator.textColor = iOS7tintColor;
swipeChangeLabel.textAlignment = NSTextAlignmentCenter;
swipeChangeLabel.textColor = [UIColor whiteColor];
swipeChangeLabel.backgroundColor = [UIColor clearColor];
swipeChangeLabel.numberOfLines = 0;
swipeChangeLabel.adjustsFontSizeToFitWidth = NO;
有哪些是已知會讓已jb而且有修改系統字體的iOS裝置crash的嗎?
我現在手邊沒有6.1.2以下的裝置,所以沒辦法重製出這個crash。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.204.16.40
MacDev 近期熱門文章
PTT數位生活區 即時熱門文章