2015-12-08 35 views

回答

1
//AppDelegate.m 
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication (NSString *)sourceApplication annotation:(id)annotation { 
NSString *documentsPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]; 
NSString *filePath = [fileURLFromLaunch path]; 
BOOL success = [fileManager copyItemAtPath:filePath toPath:finalFilePath error:&error]; 
if (success) { 
    NSLog(@"success"); 
}} 
+0

不,這不是我正在尋找的。請嘗試瞭解這個問題。 –

相關問題