UIITunesStoreURLResolver

From iPhone Development Wiki
Revision as of 20:57, 11 October 2009 by KennyTM~ (talk | contribs) (Created page with '{{occlass|library=UIKit.framework}} UIITunesStoreURLResolver is a singleton class that can compute whether an iTunes Store link would link to AppStore or not. Example usage…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


UIITunesStoreURLResolver is a singleton class that can compute whether an iTunes Store link would link to AppStore or not.

Example usage:

NSURL* url = [NSURL URLWithString:@"http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=1&mt=8"];
UIITunesStoreURLType urlType = [[UIITunesStoreURLResolver sharedResolver] urlTypeForURL:url];
assert(urlType == UIITunesStoreURLTypeAppStore);

Reference