You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Swift isn't my main language, I'm hoping you could make this clearer for me.
I'm instantiating an OSCServer inside a VC, which I only need while I'm inside that VC. I want to close that connection and deallocate the server when I leave the VC and return to the parent VC.
By making the server.delegate = self I cause a retain cycle even if I try setting server.delegate = nil in viewWilDisappear()
I've tried declaring my server as weak and unowned
Hi Devin,
Swift isn't my main language, I'm hoping you could make this clearer for me.
I'm instantiating an OSCServer inside a VC, which I only need while I'm inside that VC. I want to close that connection and deallocate the server when I leave the VC and return to the parent VC.
By making the
server.delegate = selfI cause a retain cycle even if I try settingserver.delegate = nilinviewWilDisappear()I've tried declaring my server as
weakandunownedWhat am I missing?