I have a UIWebview that loads a local asp website, it works properly on the Simulator but not on the device. I don't know where is the problem ?
Here is my code :
- (void)viewDidLoad
{
[super viewDidLoad];
NSString *index = @"http://192.168.205.146:31021/";
NSURL *url = [NSURL URLWithString:index];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[webView loadRequest:requestObj];
}
And
- (BOOL)webView:(UIWebView*)webViewRef shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType
{
return YES;
}
Thanks for your help.