i try open specific path in app, nothing displayed in uiwebview in simulator, orignal code :
- (void)viewdidload { [super viewdidload]; // additional setup after loading view. nsstring *host = [[nsuserdefaults standarduserdefaults] valueforkey:@"host"]; nsstring* complement = @"/manager/"; nsstring *fullurl = [nsstring stringwithformat:@"%@ %@", host, complement]; nsurl *url = [nsurl urlwithstring:fullurl]; nsurlrequest *requestobj = [nsurlrequest requestwithurl:url]; [_mywebview loadrequest:requestobj]; } host stored bundles settings
1: when have set nsuserdefaults key "host", have called synchronize on nsuserdefaults?
2: please debug variable nsstring *host, right string in it?
3: instead of nsstring *fullurl = [nsstring stringwithformat:@"%@ %@", host, complement]; try host = [host stringbyappendingstring:complement];
3.1: on server specific path available on desktop safari?/is there index.html @ path?
4: please debug variable nsurl *url, right string in it?
5: implement uiwebviews delegates , debug them also: uiwebviewdelegate