I have an app. In this on the click of an Upload
button a UITableView
appears inside a UIPopOverController
with a few entries. On clicking on any of these entries, a corresponding site should open in the wUIWebView
of my UIDetailView
of SplitView
app.
I am using the following lines of code ::
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
// Navigation logic may go here. Create and push another view controller.
hUrl = [kk objectAtIndex:indexPath.row];
hUrl = [Url stringByReplacingOccurrencesOfString:@" " withString:@"_"];
NSString *hisPage= [[NSUserDefaults standardUserDefaults] stringForKey:@"url_preference"];
Page = [hisPage stringByAppendingString:@"/index.php/"];
Page = [hisPage stringByAppendingString:hUrl];
NSURL *Url = [NSURL URLWithString:Page];
NSLog(@"%@", Url);
NSURLRequest *request = [NSURLRequest requestWithURL:Url];
self.detailViewController.webView.scalesPageToFit = YES;
[self.detailViewController.webView loadRequest:request];
}
The UITableView
appears inside a UIPopoverController
. However, I am unable to load the corresponding webPage. Can someone help me to sort this out ?? Thanks and regards.