views:

409

answers:

2

After clicking on a UIView I want to take the user of my app OUT of my app and to another app on the app store. How do i do it?

A: 

Call

[[UIApplication sharedApplication] openURL:@"APP_STORE_URL_OF_EXISTING_APP"]

This will automatically quit your application and launch App Store application.

+3  A: 
NSString *buyString=@"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=APP_ID&mt=8";

NSURL *url = [[NSURL alloc] initWithString:buyString];
[[UIApplication sharedApplication] openURL:url];
[url release];

Tuomas Pelkonen