My app crashes and I need some advice to find and fix the problem. It is not a device or cable problem because it happens with all devices and not only when debugging. Xcode
Yes, it is a memory issue, or you have opened too many threads. I have met this problem before. The problem I met like this:
When I delete a photo, which may cost about 0.2s, I would like to show a toast(MBProgressHUD
) to user, and GCD to hide the toast after deleting.
When I tried to delete 100 photos, it is okay. However, when I tried to delete 200 photos, the app might be crashed. When I tried to delete 300 photos, the iPhone always restart itself.