Memory continuously increase then app crash when i display image from document directory during scrolling UITableview

后端 未结 3 1541
臣服心动
臣服心动 2021-01-19 15:18

My Requirement is download all images in application memory and display it from local if its available.

Below is my code to access image from local and if its not av

3条回答
  •  感情败类
    2021-01-19 16:11

    Yes Finally i have resolved it.

    The code which is in Question is working fine now. but Without release some objects and @autoreleasepool block which is in code, memory was increase continuously during scroll UITableView.

    From the Instrument i found that memory increase in UILableView and UIImageView. I am using Custom UITableViewCell and in that file i havnt implement dealloc method. So When i have implement dealloc method in UITableViewCell .m file and release & nil all object.

    After that memory not increase during scroll TableView and its Resolved the issue.

提交回复
热议问题