molon / MLLabel

UILabel replacement with TextKit. Support link and expression.
MIT License
723 stars 115 forks source link

下面代码,直接crash了,怎么修复? #48

Closed GitterYang closed 8 years ago

GitterYang commented 8 years ago

* Terminating app due to uncaught exception 'NSRangeException', reason: '* -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array'

这个该怎么解决呢?

molon commented 8 years ago

image @CoderEic 哥们,我没有重现你的问题。可否麻烦fork下MLLabel,然后在里面某个地方重现下这个问题?

GitterYang commented 8 years ago

我把有问题的部分从我代码中抽出来,那样写又没问题,放在我项目中就crash了,我还是自己检查检查吧,多谢了!

molon commented 8 years ago

@CoderEic 好吧,若是库有问题请及时和我说。 :)

GitterYang commented 8 years ago

好的,Thank you.