How do i resolve EXC_BAD_ACCESS errors encountered in iphone development

后端 未结 8 594
执念已碎
执念已碎 2020-12-13 20:54

I\'m trying to do a simple thing; read an image from the internet, save it to the app\'s documents directory on the iphone, and read it back from that file so that i can do

8条回答
  •  既然无缘
    2020-12-13 21:48

    Perhaps, initWithContentsOfFile doesn't take a path argument? Browse around at the different init methods for UIImage, I think there's a different one for accepting a path.

    There also might be something fancier you have to do for making a path? I remember doing something with "bundles"? Sorry to be so vague, it's all I remember offhand.

提交回复
热议问题