开发者

saving text from uitextview to plist

开发者 https://www.devze.com 2022-12-17 13:03 出处:网络
for my application i am able to read the description of a place selected from the table开发者_Go百科 row and display it in the uitextview. but what i needed to do next is able to save content edited b

for my application i am able to read the description of a place selected from the table开发者_Go百科 row and display it in the uitextview. but what i needed to do next is able to save content edited by user in the uitextview to plist. need some guide because i had been searching for it but in vain..thanks


You don't need to use a plist to store a string, you can use -[NSString writeToFile:atomically:encoding:error:] method, and just create a single file.

If you're dead set on creating a plist, you can use the NSPropertyListSerialization class to read and write plists.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号