アプリがあります。これで、Upload
ボタンをクリックすると、いくつかのエントリとともにUITableView
が表示されます。UIPopOverController
これらのエントリのいずれかをクリックすると、対応するサイトUIWebView
が my UIDetailView
of SplitView
app の w に表示されます。
次のコード行を使用しています::
- (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];
}
は のUITableView
中に表示されますUIPopoverController
。ただし、対応する webPage を読み込めません。誰かがこれを整理するのを手伝ってくれますか?? ありがとうございます。