NSString *uRLString = @”http://www.iostpoint.wordpress.com//”;

    NSURL *webURL = [NSURL URLWithString:uRLString];

    NSError *error;

    NSString *iostpointPage = [NSString stringWithContentsOfURL:webURL

                                                    encoding:NSASCIIStringEncoding

                                                       error:&error];

    NSAttributedString * attrStr = [[NSAttributedString alloc] initWithData:[iostpointPage dataUsingEncoding:NSUnicodeStringEncoding] options:@{ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType } documentAttributes:nil error:nil];

Enjoy Coding 🙂

Advertisements