I'm using a UIWebView to show content with embedded videos (Youtube and Vimeo iFrames). The modal video player initially worked great out of the box. I updated to iOS 6.1 SDK and now when I close the video player the UIWebView has been cleared and does not re-render the content. Any suggestions on what I need to change to get this to work correctly in iOS 6.1?
Asked
Active
Viewed 287 times
0
-
Are you perhaps dropping the view on the floor when you get `-viewWill/DidDisappear:`, or when you get a memory warning? – Lily Ballard Feb 27 '13 at 22:06
-
I'm not getting a memory warning. I added a line to reset the content in viewWillAppear (which gets called after close) and that does render the content. So the view is still there and the controller has a reference. I like to not have to do that but it may be the only solution. – code0100fun Feb 27 '13 at 22:24
1 Answers
0
I ended up reseting the content in viewWillAppear (which gets called after the video closes) and that renders correctly.
-(void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[self.webView loadHTMLString:self.html baseURL:self.url];
}

code0100fun
- 180
- 1
- 11