html - NSHTMLTextDocumentType downloads images synchronously -


i trying display html text in uitextview nsattributedstring:

[[nsattributedstring alloc] initwithdata:[htmlstring datausingencoding:nsutf8stringencoding] options:@{nsdocumenttypedocumentattribute: nshtmltextdocumenttype,nscharacterencodingdocumentattribute: [nsnumber numberwithint:nsutf8stringencoding]} documentattributes:nil error:nil]

the html text trying display has images in it. problem is, method downloading these synchronously. handle image download , display myself. there way can tell system not download these images, assign placeholder when execute this?

you can create attributed string synchronously , show hud while processing happening. create custom delegate inform class when creation complete.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -