作者cocoben (科科班)
看板MacDev
标题[问题] Jailbreak JB造成的crash 字体
时间Tue Dec 3 19:34:29 2013
我原先以为只是一个无法重制的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