Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198
UIITunesStoreURLResolver: Difference between revisions - iPhone Development Wiki

UIITunesStoreURLResolver: Difference between revisions

From iPhone Development Wiki
m (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…')
 
mNo edit summary
 
Line 1: Line 1:
{{occlass|library=UIKit.framework}}
[[UIITunesStoreURLResolver]] is a singleton class that can compute whether an iTunes Store link would link to AppStore or not.
[[UIITunesStoreURLResolver]] is a singleton class that can compute whether an iTunes Store link would link to AppStore or not.


Line 12: Line 10:
== Reference ==
== Reference ==
* Header: http://github.com/kennytm/iphone-private-frameworks/blob/master/UIKit/UIITunesStoreURLResolver.h
* Header: http://github.com/kennytm/iphone-private-frameworks/blob/master/UIKit/UIITunesStoreURLResolver.h
{{occlass|library=UIKit.framework|navbox=on}}

Latest revision as of 17:36, 12 October 2009

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