title: When will the object in swift be deleted?
body: <p>I am a new Swift learner. Now I am really confused about the deallocation of the Swift objects. For example, I created a <code>UIView</code> object in <code>viewDidload()</code> method and add it to the main view. I think the view created by me should be destroyed directly after the calling of method <code>viewDidload()</code> , Cause it is a local variable. </p>
  
  <p>But I can still see this view on the screen which makes me very confused. Can anyone help me? Thank you very much!</p>