2009-08-06 6 views

答えて

0

ここでは、ドキュメントフォルダとiTunesを共有するためのリンクです。 http://www.raywenderlich.com/1948/how-integrate-itunes-file-sharing-with-your-ios-app

また、アプリケーションのコードをアプリケーションの「ドキュメント」ディレクトリに直接書き込むこともできます。これら2つのどちらもあなたが探しているものでない場合は、ファイル形式をサポートするためにアプリを登録できますか?しかし、それはあなたが望むもののようには聞こえません。

- (NSString*)DocumentsPath 
{ 
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, TRUE); 
    return [paths objectAtIndex:0]; 
} 

//not every class supports writeToFile 
- (void)writeToFile:(id)object withFileName:(NSString*)filename 
{ 
    [object writeToFile:[[self DocumentsPath] stringByAppendingPathComponent:filename] atomically:TRUE]; 
} 
関連する問題