login.txt라는 파일에 대한 사용자 이름 인 textField 값을 쓰고 싶습니다.WriteToFile : atomically deprecate 경고
내 코드 : 나는 "원자 : 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)를보십시오. –