automatic ref counting - WatchKit without ARC causes crash when dealloc -


the watch app developing not using arc. , releases properties of objects in each interface in dealloc below.

-(void)dealloc {    [obj1 release];   [obj2 release];    ...   [super dealloc]; } 

this causes crash when close interface (for example go main interface). why so?

retains , releases need balanced in context of class. didn't retain when assigned 1 of instance variables, , it's over-release. can try enabling zombies catch message deallocated instance if that's case.


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -