How can I detect when a user clicked an external link and safari is going to open.
Instead I would like to catch this event and create a UIWebView inside my application. Is this possible with vfr/reader?
EDIT:
I found out that vfr/reader does this:
[[UIApplication sharedApplication] openURL:target];
Is there away to NOT modify vfr/reader and customize the behavior?
You’re talking about the Open Source vfr/reader code, right?
Why couldn’t you just replace the
openURL:targetcall that it uses with a[yourAppDelegate openURLInMyBuiltInUIWebView: target]method instead?Or, since you’re saying you don’t want to modify the vfr/reader code, perhaps you could subclass
UIApplicationand replace theopenURL:targetcall to do what you want.Here is a related question that might help you do that.