UIDocumentInteractionControllerを使った事がある方はいると思いますが、 ネット上のサンプルコードを探してもNSStringを他のアプリで開くまでの手順が書かれているものがなかったのでコチラに投稿。 UIActivityViewControllerを使えば、簡単にテキストを他のアプリで開けるのですが、 コチラの場合、自分でアプリを追加しなければいけなかったりと、面倒。 UIDocumentInteractionControllerを使えば、自動的にテキストファイルが開けるアプリを 探して表示してくれるのでコチラのほうが断然便利です。 //テキストファイルとして書き出すためのディレクトリを作成する NSArray* paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDoma