objective c - Convert HTML to NSAttributedString in iOS with input type checkbox -


i have problem nsattributedstring. want show checkbox nsattributedstring image : enter image description here

but can't show that: enter image description here

this code:

nsstring *txt = @"<br><input type='checkbox' >checkbox<br><br>"; nsattributedstring *att = [[nsattributedstring alloc] initwithdata:[txt datausingencoding:nsutf8stringencoding]                                                                options:@{nsdocumenttypedocumentattribute:nshtmltextdocumenttype,                                                nscharacterencodingdocumentattribute: @(nsutf8stringencoding)}                           documentattributes:nil error:nil]; lbltitle.attributedtext = att; 


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -