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

  • SEARCH
  • Home
  • 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 6344109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:34:24+00:00 2026-05-24T20:34:24+00:00

I am re-writing my app using the Three20 library. In my app, I am

  • 0

I am re-writing my app using the Three20 library. In my app, I am opening links to various websites, some which contain websites that have unsigned certs.

In my non-three20 app, this is how I am loading such websites (using ASIHTTPRequest):

//=======================================================================================
// Once the correct URL is set, load it using ASIHTTPRequest
-(void)loadURL:(NSURL *)localURL
{
    [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES];

    if(regularLoad)
    {
    NSURLRequest *req = [[NSURLRequest alloc] initWithURL:localURL];
    [webView loadRequest:req];
    regularLoad = false;
} else {
    ASIHTTPRequest *request = [[ASIHTTPRequest alloc] initWithURL:localURL];
    [request setValidatesSecureCertificate:NO];
    [request setDelegate:self];
    [request startAsynchronous]; 
    [request release];
    }
}

//=======================================================================================
// Delegate method for ASIHTTPRequest 
- (void)requestFinished:(ASIHTTPRequest *)request
{
    // Use when fetching text data
    NSString *responseString = [request responseString];
    webView.scalesPageToFit = YES;
    [webView loadHTMLString:responseString baseURL:request.url];
}

The main part of that is webView’s loadHTMLString method, which a Three20 TTWebController does not have.

Has anyone been able to accomplish this in Three20? I have scoured the net and on here, but have found no solutions.

Thanks for any help!

  • 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-24T20:34:26+00:00Added an answer on May 24, 2026 at 8:34 pm

    You can extend the TTWebController class and add the missing loadHTMLString function yourself.

    @interface WebController : TTWebController
    
    /////////////////////////////////////////////////////////////////////////////////////////////
    @implementation WebController
    
    - (void)loadHTMLString:(NSString *)string baseURL:(NSURL *)baseURL {
      [_webView loadHTMLString:string baseURL:baseURL;];
    }
    

    You will need to create the web controller using the init function and not call it using the TTNavigator, so you will have a reference to it

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

Sidebar

Related Questions

I have an Codeigniter app (using version 2.1.0) that is writing a transaction to
I'm writing an Adobe AIR app using plain HTML which needs to upload photos
I am writing an app that plays a url using MPMoviePlayerController. The app works
I am writing a web app in PHP using mySQL that models an election.
I'm writing a web-app using Python and Pylons. I need a textbox that is
I am trying to develop a Qt App using 4.7.3 which involves the writing
I am writing a small app that uses the GAE. I have parts of
I'm writing an app using ncurses which displays the status of tests running on
I'm writing a web app using grails and spring-security 3.0.3 which requires me to
I'm writing an MVC2 app using DataAnnotations. I have a following Model: public class

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.