I'm trying to get iTunes to launch from a html page loaded in a UIWebView
.
Using the example from Apple's documentation
<a
href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?i=156093464&id=156093462&s=143441">
<img height="15" width="61" alt="Randy Newman - Toy Story
- You've Got a Friend In Me" src="http://ax.phobos.apple.com.edgesuite.net/images/
badgeitunes61x15dark.gif"></img> </a>
When I click on the button didFailLoadWithError: will get called with WebKitErrorDomain 101
.
(shouldStartLoadWithRequest:
returns YES for any requests)
The same html page loaded in a browser works.
(There's actually another problem with that code, see this link Remote image doesn't get displayed in html page displayed in UIWebView
But after changing it to this it still doesn't work in UIWebView but does in a browser
<a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?i=156093464&id=156093462&s=143441">
<img height="15" width="61" src="Btn_Go.png""></img>
</a>