我想從我的iOS應用程序從我的應用程序發送動作到其他應用如何從我的應用程序發送操作到其他應用程序?
UIApplication *ourApplication = [UIApplication sharedApplication];
NSString *URLEncodedText = @"...";
NSString *ourPath = [@"...://" stringByAppendingString:URLEncodedText];
NSURL *ourURL = [NSURL URLWithString:ourPath];
if ([ourApplication canOpenURL:ourURL]) {
[ourApplication openURL:ourURL];
}
else {
//Display error
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"..." message:@"..." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alertView show];
}
現在,打開第二個應用程序,但我想送行動,第二個應用程序。
我不明白。請詳細解釋。 – user3182143
我想運行你的第二個應用程序的方法是可能的? –
傳遞iTunes網址的第一個應用程序。它會工作。 – user3182143