ios - Link from App to an iTunes artist through button -


I am trying to link to an artist iTunes 'page' through a button on my project Trying to use the page eg. "Http://itunes.apple.com/au/artist/blink-182/id116851" and it worked once, but it only showed its page in Safari. I would like to direct them to the artist page on the iTunes Store app. I Read the questions and how they can connect to the app on all app stores, but there is nothing about the iTunes store. Here's my code for the button:

  - (IBAction) Offsite 2 {[UIApplication shared application] Opal: [NSURL URLWithString: @ "http://itunes.apple .com / au / artist / nap-182 / id116851 "]]; }   

I have tried to add it instead of http: //: // but still has not worked

Adding itms instead of http: // should work as it is the only proper way to do it. Even if you leave it as http, it will have to open Safari, then it will have to redirect to iTunes app.

And please note that it will work in a simulator, but not in a device.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -