标签:
1.打开URL
#define PDF_PRODUCT_URL @"http://www.cisdem.com/pdf-password-remover-mac.html"
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:PDF_PRODUCT_URL]];
2.打开本地文件
#define PRProductName @"Cisdem PDFPasswordRemover"
NSString *fullPath = [[NSBundle mainBundle] pathForResource:PRProductName ofType:@"pdf"];
[[NSWorkspace sharedWorkspace] openFile:fullPath];
标签:
原文地址:http://www.cnblogs.com/PJXWang/p/5816625.html