Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

ASHTimerViewModel中的nstimer会有内存泄露吧 #26

Open
rogerjinHub opened this issue Dec 28, 2015 · 6 comments
Open

ASHTimerViewModel中的nstimer会有内存泄露吧 #26

rogerjinHub opened this issue Dec 28, 2015 · 6 comments
Assignees

Comments

@rogerjinHub
Copy link

No description provided.

@ashfurrow
Copy link
Owner

You're see a memory leak with the NSTimer? Where, specifically?

@rogerjinHub
Copy link
Author

on ASHTimerViewModel file , you can write the dealloc function, and when the ASHTimerViewController pop, the dealloc function cannot be called, so it's memory leak, right?

  1. so on the ASHTimerViewController file , you can add [viewmodel pause] on cancel function, this will call the dealloc function when controller dismiss.

@rogerjinHub
Copy link
Author

you can start the time, don't to pause the time, and then pop the controller

@ashfurrow
Copy link
Owner

Ah, interesting. Good catch, I'll try to get to that.

@ashfurrow ashfurrow self-assigned this Dec 31, 2015
@zppsteav
Copy link

zppsteav commented May 7, 2016

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'CoreData: FATAL ERROR: The persistent cache of section information does not match the current configuration. You have illegally mutated the NSFetchedResultsController's fetch request, its predicate, or its sort descriptor without either disabling caching or using +deleteCacheWithName:'

@cxjwin
Copy link

cxjwin commented Feb 27, 2017

NSTimer will retain self.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants