Reputation: 11
I have an application, I wish to click a button and open a PDF that would be saved in the application files.
Upvotes: 0
Views: 867
Reputation: 55533
You could use this:
system([[NSString stringWithFormat:@"open %@", path_to_my_file] UTF8String]);
This way, if the user likes using another application to open their PDFs, it will open that instead.
Upvotes: 1