我有一个表格视图的简单部分索引,第一次看起来很好,但如果发生某些类型的交互强制重新绘制部分索引,则会崩溃:
如果我注释掉段索引(通过在sectionIndexTitlesForTableView中返回nil而不是"[self.collation sectionIndexTitles]"),它就可以了.
它只发生在iOS 7下(因为测试版并没有在7.0.1版本中修复)而且我总是得到以下与CoreText /动画/过渡相关的堆栈跟踪:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x000001f0
Triggered by Thread: 0
Thread 0 Crashed:
0 CoreText 0x31403312 TComponentFont::GetMinSideBearing(CGAffineTransform const&, bool) const + 10
1 CoreText 0x313f3ada TRun::GetLeftHangersGlyphCountAndWidth(long, unsigned long, TCharStream const&) const + 322
2 CoreText 0x313f394c TLine::GetLeftHangersGlyphCountAndWidth(unsigned long const*) const + 148
3 CoreText 0x314025d8 TLine::GetBounds(unsigned long) const + 496
4 CoreText 0x314023ca CTLineGetBoundsWithOptions + 10
5 UIKit 0x333641f6 -[UITableViewIndex _cacheAndMeasureTitles] + 758
6 UIKit 0x33364b8e -[UITableViewIndex sizeThatFits:] …Run Code Online (Sandbox Code Playgroud)