lundi 3 août 2015

Should I set object to nill in Swift

I am reading someone's code. He set AVAudioPlayer to nil after user click a button to stop the audio from playing. I am wondering should we set object to nil after we don't need it anymore? Or should we set AVAudioPlayer to nil after we are trying to stop playing the audio?

Aucun commentaire:

Enregistrer un commentaire