Closed ytzong closed 11 years ago
I can't reproduce this. Can you make sure you are using the latest beta (the betas don't have distinct version numbers), and if so, can you provide a sample project demonstrating the problem?
@nicklockwood https://github.com/ytzong/FXLabelCrash I add FXLabel (1.4.2) by CocoaPods, and Podfile content is
platform :ios, '6.0' pod 'FXLabel'
@nicklockwood I'm sorry 2 hours ago the sample is emty, now is OK. Thank you.
Hi ytzong,
This has been fixed in 5.0 beta, but is not yet on cocoapods. You can download it direct from github. I'll update the podspec when 5.0 is released.
@nicklockwood Good job. Thank you very very much.
_label.numberOfLines = 0; _label.lineBreakMode = UILineBreakModeWordWrap; //for example: _label.frame.size.width = 100px
//crash when long Chinese _label.text = @"这是一段长文字这是一段长文字这是一段长文字这是一段长文字这是一段长文字这是一段长文字这是一段长文字这是一段长文字这是一段长文字这是一段长文字这是一段长文字这是一段长文字这是一段长文字这是一段长文字这是一段长文字这是一段长文字这是一段长文字这是一段长文字这是一段长文字这是一段长文字";
//or crash when long words _label.text = @"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";