【发布时间】:2015-06-10 07:33:24
【问题描述】:
我正在使用 UIWebview 来显示用户个人资料的详细信息。现在,当尝试上传图像时,整个 Webview 会重新加载并显示回上传前的同一阶段。
UIWebView *ProfileCellWebview = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, cell.layer.frame.size.width, (MainFrame.size.height - 210))];
[ProfileCellWebview setBackgroundColor:[UIColor clearColor]];
NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:USERPROFILEPUBLIC,self.appDelegate.currentUser.userId]];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[ProfileCellWebview setDelegate:self];
[ProfileCellWebview loadRequest:requestObj];
[[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES];
[cell addSubview:ProfileCellWebview];
我哪里做错了
【问题讨论】:
-
请正确提问,不明白是什么问题?
-
尝试从 Webview 表单上传图片,上传图片后 webview 每次都重新加载
-
你能把网址分享给我们吗?以便我们检查它并帮助你?
标签: ios objective-c iphone uiwebview