I'm currently creating a twitter client for iphone.
Basically, I have three kinds of url types I want to handle:
- Standard URL's (e.g. http://www.msn.com)
- YouTube URL's
- URL's containing links to a stream.
When a user clicks a link.. instead of launching the web view and letting the webview decide whether to load quicktime player & youtube player, I want to be able to handle it within the app.
i.e. how can i code something like:
check link if link = link.youtube then load youtube player if link = link.mp3 stream then load quicktime player else load in webview