Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Rather than the long and confusing urls that you usually see, you can create App Store links that are much simpler and more logical. The iTunes Store has a hidden URL format that’s much more logical. Depending on what you’re linking to, you just need to build a URL in one of these formats:</p> <ol> <li>Artist’s name or App Store developer’s name: <a href="http://itunes.com/Artist_Or_Developer_Name" rel="noreferrer">http://itunes.com/Artist_Or_Developer_Name</a></li> <li>Album name: <a href="http://itunes.com/Artist_Name/Album_Name" rel="noreferrer">http://itunes.com/Artist_Name/Album_Name</a></li> <li>Apps: <a href="http://itunes.com/app/App_Name" rel="noreferrer">http://itunes.com/app/App_Name</a></li> <li>Movies: <a href="http://itunes.com/movie/Movie_Title" rel="noreferrer">http://itunes.com/movie/Movie_Title</a></li> <li>TV: <a href="http://itunes.com/tv/Show_Title" rel="noreferrer">http://itunes.com/tv/Show_Title</a></li> </ol> <p>Just include a url of this format in the body of the email you create.</p> <p>(Note that spaces might cause problems, but I found that omitting them entirely worked for me - <a href="http://itunes.com/app/FrootGroove" rel="noreferrer">http://itunes.com/app/FrootGroove</a> redirects to the app called "Froot Groove".)</p> <p>(Also note that if this doesn't work for you, the iTunes link maker is <a href="http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStoreServices.woa/wa/itmsLinkMaker" rel="noreferrer">here</a>)</p> <p>Your code will be something like this (extracted from mine, anonymised and not tested)</p> <pre><code>NSString* body = [NSString stringWithFormat:@"Get my app here - %@.\n",myUrl]; #if __IPHONE_OS_VERSION_MIN_REQUIRED &lt;= __IPHONE_2_2 [NSThread sleepForTimeInterval:1.0]; NSString* crlfBody = [body stringByReplacingOccurrencesOfString:@"\n" withString:@"\r\n"]; NSString* escapedBody = [(NSString*)CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault, (CFStringRef)crlfBody, NULL, CFSTR("?=&amp;+"), kCFStringEncodingUTF8) autorelease]; NSString *mailtoPrefix = [@"mailto:xxx@wibble.com?subject=Get my app&amp;body=" stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; // Finally, combine to create the fully escaped URL string NSString *mailtoStr = [mailtoPrefix stringByAppendingString:escapedBody]; // And let the application open the merged URL [[UIApplication sharedApplication] openURL:[NSURL URLWithString:mailtoStr]]; #endif </code></pre> <p>You can do better things in iPhone 3.0, but I can't talk about those yet.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload