Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

[NSConcreteAttributedString initWithHTMLData:documentAttributes:]: unrecognized selector #240

Closed
vietnqexo opened this Issue · 1 comment

2 participants

@vietnqexo

I tried to get NSAttributedString from Html string using NSAttributedString+HTML.

NSData *htmlData = [ACTIVITY_TITLE dataUsingEncoding:NSUTF8StringEncoding];
NSLog(@"%@",htmlData);
NSAttributedString *attText = [[NSAttributedString alloc] initWithHTMLData:htmlData documentAttributes:nil];

The project is built successfully but in runtime, I always get this message:

[NSConcreteAttributedString initWithHTMLData:documentAttributes:]: unrecognized selector

@Cocoanetics
Owner

That means you did not properly link in the static library or framework. Probably missing the linker flags and thus the category methods are not loaded by the linker.

@Cocoanetics Cocoanetics closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.