objective c - Swift setting object to nil does not release memory -



objective c - Swift setting object to nil does not release memory -

i have optional property of class of type viewcontroller

var vc : uiviewcontroller()?

i later nowadays view controller popover using custom code.

upon dismissing popover controller set variable nil

vc = nil

but object never release (and dealloc method of viewcontroller not called)

this worked in objective c not in swift me

is there else have in order forcefulness object released in swift (other setting nil)?

objective-c swift memory-management

Comments

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -