I’m working on writing to a file one user input on a textField.
So far I have one NSFileManager which writes data to a file. Still, I have no way of putting the textField input inside a file.
Is there a way do add a string value to NSData so I can write it?
you can get NSData from NSString,
use encoding that fits your case.
append the obtained data to existing NSData,
Note: “existingData” should be an instance of NSMutableData.