login.txtという名前のファイルにユーザー名であるtextField値を書きたいと思います。WriteToFile:原子的に非難する警告
マイコード:私は ":アトミック:wrtieToFile" として警告を受ける
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
// the path to write file
loginFilePath= [documentsDirectory stringByAppendingPathComponent:@"Login.txt"];
NSString *userName=[nameText text];
[userName writeToFile:loginFilePath atomically:YES];
が推奨されていません。
[こちら](https://developer.apple.com/library/IOs/#documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/DeprecationAppendix/AppendixADeprecatedAPI.html)をご覧ください。 –