Ok, I know this question is already asked. But The question was a little bit old, so I thought maybe there are new and easier way to do this:
opening AppStore if the App isn't installed, and open the App if it is installed.
Ok, I know this question is already asked. But The question was a little bit old, so I thought maybe there are new and easier way to do this:
opening AppStore if the App isn't installed, and open the App if it is installed.
私の知る限り、AppStore または Safari 以外のアプリを開くことはできません。できることは、アプリがインストールされているかどうかを確認することです。インストールされている場合は何もせず、そうでない場合は AppStore を開きます。
-(IBAction)appCheck:(id)sender {
NSArray *checkForApp = [NSArray arrayWithObjects:
@"/Applications/YourApp.app",
NSString *exists;
for(NSString *string in checkForApp)
if ([[NSFileManager defaultManager] fileExistsAtPath:string])
exists=@"y";
else
//OPEN APP STORE
}