Remove unused data from IBAction

Discussion in 'iPhone/iPad Programming' started by duny, Feb 28, 2009.

  1. macrumors newbie

    duny

    Joined:
    Sep 21, 2008
    Location:
    H-Town
    #1
    How can i just make the goClick show only the results and not change the baseurl of all the links in the results.

    I only need to execute this part of the code.

    Code:
    [SearchView getsearch: textField.text];
    
    Every time i play with it, it debugs out. Much help is appriciated.
    Code:
    - (IBAction)goClick {
    	NSString* searchXml = [SearchView getsearch: textField.text];
        NSData* htmlData = [searchXml dataUsingEncoding:NSUTF8StringEncoding];
    	[webView loadData:htmlData MIMEType:@"text/html" textEncodingName:@"UTF-8" baseURL:[NSURL URLWithString:@"http://www.mywebsite.com/about.html"]];  	 
    }
    
     
  2. thread starter macrumors newbie

    duny

    Joined:
    Sep 21, 2008
    Location:
    H-Town
    #2
    I set baseURL to nil now all i get is a blank page.

    How can i set it where it doesnt remove the actual URL and replace it with something else.

    AnyOne
     

Share This Page