Post

Replies

Boosts

Views

Created

iOS 18 new beta5 version crash when call NSMutableAttributedString init
after update to iOS 18 beta5,We found that the next code will crash. When we use html string to generate to a NSMutableAttributedString object. It will be crash. NSMutableAttributedString *text = [[NSMutableAttributedString alloc] initWithData:[@"some html string" dataUsingEncoding:NSUTF8StringEncoding] options:@{ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType, NSCharacterEncodingDocumentAttribute : @(NSUTF8StringEncoding) } documentAttributes:nil error:nil];
Topic: UI Frameworks SubTopic: UIKit
2
1
509
Aug ’24
iOS 18 new beta5 version crash when call NSMutableAttributedString init
after update to iOS 18 beta5,We found that the next code will crash. When we use html string to generate to a NSMutableAttributedString object. It will be crash. NSMutableAttributedString *text = [[NSMutableAttributedString alloc] initWithData:[@"some html string" dataUsingEncoding:NSUTF8StringEncoding] options:@{ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType, NSCharacterEncodingDocumentAttribute : @(NSUTF8StringEncoding) } documentAttributes:nil error:nil];
Topic: UI Frameworks SubTopic: UIKit
Replies
2
Boosts
1
Views
509
Activity
Aug ’24