首页 > 其他 > 详细

iOS writeToFile crash

时间:2014-02-28 22:22:38      阅读:593      评论:0      收藏:0      [点我收藏+]

Recently I wrote an app to collect data from iPhone. However the app crashed after a random period of time which made my classmates sad. But finally, we found out where the bug is !!!!!

- (BOOL)writeToFile:(NSString *)path atomically:(BOOL)flagDescription 

The parameter atomically, I set NO from the Internet. However, it crashed when multiple writes happened. So setting atomically YES is essential for multiple threads!!!!!!!!

iOS writeToFile crash,布布扣,bubuko.com

iOS writeToFile crash

原文:http://blog.csdn.net/taoqick/article/details/20078237

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!