title: UIWebView loadHTMLString shows blank screen
body: <p>I have a strange problem with UIWebView's loadHTMLString, where it would only display a blank view when I called loadHTMLString with my content HTML string. It does not matter what the content of the htmlstring is, it simply does nothing.</p>
  
  <p>The strange thing is that it used to work a few weeks ago, when I tested it on the simulator and device. My code is below:</p>
  
  <pre><code>NSMutableString *sHtmlBuf = [NSMutableString stringWithString:@"&lt;body style=\"background-color: #000000; color: #FFFFFF; font-family: Helvetica; font-size: 10pt; width: 300px; word-wrap: break-word;\"&gt;"];
  
  if ([m_oCallArray count] &gt; 0 || [m_oPutArray count] &gt; 0) {
      [sHtmlBuf appendString:sWarrTitle];
  
      if ([m_oCallArray count] &gt; 0) {
          NSString *formattedCall = [NSString stringWithFormat:@"%@ %@&lt;br /&gt;",sCallTitle,[self arrayToString:m_oCallArray]];
          [sHtmlBuf appendFormat:@"%@ ",formattedCall];
      }
  
      if ([m_oPutArray count] &gt; 0) {
          NSString *formattedPut = [NSString stringWithFormat:@"%@ %@&lt;br /&gt;",sPutsTitle,[self arrayToString:m_oPutArray]];
          [sHtmlBuf appendFormat:@"%@ ",formattedPut];
      }
  
  }
  
  if ([m_oBullArray count] &gt; 0 || [m_oBearArray count] &gt; 0) {
      [sHtmlBuf appendString:sCbbcTitle];
  
      if ([m_oBullArray count] &gt; 0) {
          NSString *formattedBull = [NSString stringWithFormat:@"%@ %@&lt;br /&gt;",sBullTitle,[self arrayToString:m_oBullArray]];
          [sHtmlBuf appendFormat:@"%@ ",formattedBull];
      }
  
      if ([m_oBearArray count] &gt; 0) {
          NSString *formattedBear = [NSString stringWithFormat:@"%@ %@&lt;br /&gt;",sBearTitle,[self arrayToString:m_oBearArray]];
          [sHtmlBuf appendFormat:@"%@ ",formattedBear];
      }
  
  }
  
  if ([m_oOtherArray count] &gt; 0) {
      NSString *formattedOther = [NSString stringWithFormat:@"%@ %@&lt;br /&gt;",sOtherTitle,[self arrayToString:m_oOtherArray]];
      [sHtmlBuf appendFormat:@"%@ ",formattedOther];
  }
  
  [m_oDataPresentView loadHTMLString:sHtmlBuf baseURL:nil];
  </code></pre>
  
  <p>(Note: the HTML can render on a regular web browser before this problem, so the HTML is not a problem)</p>
  
  <p>EDIT: Added initialization code:</p>
  
  <pre><code>//Create wcbbc panel
  wcbbcPanel = [[WarrantsAndCbbc alloc] initWithFrame:CGRectMake(320, 0, 320, 230)];
  [m_oMainContentScrollView addSubview:wcbbcPanel];
  </code></pre>
  
  <p>UIView initialization code:</p>
  
  <pre><code>- (id)initWithFrame:(CGRect)frame {
  
      self = [super initWithFrame:frame];
      if (self) {
          // Initialization code.
          CGRect oFrame = frame;
          CGPoint oPositionCoords = CGPointMake(0, 0);
          oFrame.origin = oPositionCoords;
  
          m_oDataPresentView = [[UIWebView alloc] initWithFrame:oFrame];
          [m_oDataPresentView loadHTMLString:@"&lt;html&gt;&lt;body style=\"background-color: #000000; color: #FFFFFF; font-family: Helvetica; font-size: 10pt; width: 300px; word-wrap: break-word;\"&gt;&lt;/body&gt;&lt;/html&gt;" baseURL:nil];
          m_oDataPresentView.delegate = self;
  
          [self addSubview:m_oDataPresentView];
      }
      return self;
  }
  </code></pre>