Hi, I have an annoying bug when trying to load a YouTube Video within a UIWebView.
First, I added a UIWebView within IB to a UIViewController and connected everthing fine. For the first time the view is called everthing works fine. If I call the view a second time (e.g. go back with NavigationBar) I get a crash and a EXC_BAD_ACCESS. I tried everything, NSZOmbieEnabled, cant get the error.
You'll find a demo project at the end of this post, please compile it for iPad Simulator (it also doesn't work on the device) and click on "Add WebView", let the page load, click on "Remove WebView" and click AGAIN on "Add WebView". There will be the crash.
What i tried:
- enabled NSZombie to track the bug - doesn't work
- set delegate of WebView to nil
The error from debugger is:
http://dl.dropbox.com/u/4259690/bug.png
The bug only exists on iOS 4.2.1. With iOS 4.1 everthing works fine
Demo:
http://dl.dropbox.com/u/4259690/yout...ubeCrashes.zip