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
- Header: http://github.com/kennytm/iphone-private-frameworks/blob/master/UIKit/UIITunesStoreURLResolver.h