Open .ics file in iOS App
I need to open a .ics file in my app. I tried to open it like this: NSURL *path = [[NSBundle mainBundle] URLForResource:@"myIcsName" withExtension:@"ics"]; [[UIApplication sharedApplication] openURL:path]; But nothing is happening. How do I open the .ics file? I just used the following code: - (IBAction)displayICS:(id)sender { NSString *path = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"ics"]; NSURL *url = [NSURL fileURLWithPath:path]; UIDocumentInteractionController *dc = [UIDocumentInteractionController interactionControllerWithURL:url]; dc.delegate = self; [dc