ViewController issue.... newbie sorry ;-)

Joined
May 7, 2016
Messages
1
Reaction score
0
Points
1
Hi Guys just started my first project and I can't get it to work properly

Its a keyword search for my website

Code:
#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
  
    NSString *webSite = @"http://www.mydomain.eu/";
    NSURL *url = [NSURL URLWithString:webSite];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
  
    [webPage loadRequest:request];
  
}

-(IBAction)goToWebSite:(id)sender {
    NSString *webSite = @""http://www.mydomain.eu/m/?keyword=,addressBar.text];
    [webPage loadRequest:request];
 
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
@end

The app loads so the first part is working but after a its need to fire the submit goto

[dead link removed]

it loads my website and after entering a keyword it should go to

[dead link removed]

I think i,m close..... but not close enough... plz help me out
 
Joined
May 19, 2009
Messages
8,428
Reaction score
295
Points
83
Location
Waiting for a mate . . .
Your Mac's Specs
21" iMac 2.9Ghz 16GB RAM - 10.11.3, iPhone6s & iPad Air 2 - iOS 9.2.1, ATV 4Th Gen tvOS, ATV3
You might want to go over to Stack OverFlow and see if you have better luck there. When I was doing iOS Dev, Stack Overflow was a godsend, and always got the answer I was looking for.
HTH some, sorry couldn't be more help.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top