別のアプリケーションを開くアクション(toggleApplication)のボタンがあります。開いたアプリケーションからアプリケーションに戻るときは、別のビューに移りたいと思います。しかし、コードから次のエラーが発生します。
レシーバー(RootViewController:0x1f192450)には、識別子'showReceipt'のセグがありません
AppDelegate.m
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
RootViewController *controller = [RootViewController alloc];
return [controller handleURL:url];
}
RootViewController.m
- (IBAction)toggleApplication:(id)sender{
// Open application
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:theUrlString]];
}
- (BOOL)handleURL:(NSURL *)url{
[self performSegueWithIdentifier:@"showReceipt" sender:self];
return YES;
}