Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 902939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:47:48+00:00 2026-05-15T15:47:48+00:00

I am using webview to display Data from RSS Feed Can I change color

  • 0

I am using webview to display Data from RSS Feed Can I change color of WebView to Black From white.
I have declare outlet in xib file named RemainingRssViewController
and i am diplaying it from root view controller the code is

NSString *htmlstring =[[blogEntries objectAtIndex: blogEntryIndex] objectForKey: @"description"];
   NSURL *baseUrl;
baseUrl = [[NSURL alloc]initWithString:feedurl];

    [anotherViewController.maintext loadHTMLString:htmlstring baseURL:baseUrl];
  //maintext is the UIWebVeiw outlet in anotherViewController.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T15:47:48+00:00Added an answer on May 15, 2026 at 3:47 pm

    Ok, looks good.

    With this code:

    NSString *htmlstring =[[blogEntries objectAtIndex: blogEntryIndex] objectForKey: @"description"];

    You set up an HTML string to go in the UIWebView. However, it’s not actually HTML, because right now it’s just text. To solve this, we’ll instead make the “htmlstring” to be styled HTML with the text from the XML feed.

    For example:

    NSString *textString = [[blogEntries objectAtIndex: blogEntryIndex] objectForKey:@"description"];

    NSString *htmlstring = [NSString stringWithFormat:@"<html><head><style type='text/css'>body { color:#FFFFFF; background-color: #000000; }</style></head><body>%@</body></html>",textString];

    Then, when the “htmlstring” is placed inside the UIWebView, it will be styled as you would like it to be.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to load the parsed html data from an rss feed using a
I have tried to display a PDF file by using a WebView using the
I'm using webview to display content from certain URL. Check 2nd and 3rd links
I am using the following data to display in a WebView . These are
I have an Android app using webview to load and display html pages. But
Im using an embedded webview to display a webpage which is made up of
I am using webview in my android app to fetch some webpages from multiple
i 'm doing a project using webview in android. i can't visit url: http://www.baidu.org
I've been looking at using a WebView to display an HTML5 webpage, where the
I am using webview in android to display images (mainly using google ajax API),

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.