title: How to resize UIImageView in Swift
body: <p>I have an image in my UITableView cells, but for some cells, I want not to show image, so I decided to set image height size to zero (you know I cannot use Hidden=true) because of remaining blank space.</p>
  
  <p>So, I tried every thing, but I couldn't resize image, here is my code, so how to resize ?</p>
  
  <pre><code>    cell!.imageImage.layer.frame = CGRectMake(0, 0, 0, 0)
      cell!.imageImage.layer.masksToBounds = true                  
  </code></pre>
  
  <p>I also tried:</p>
  
  <pre><code>    cell!.imageImage.frame = CGRectMake(0, 0, 0, 0)
      cell!.imageImage.layer.masksToBounds = true
  </code></pre>
  
  <p>So what should I do ?</p>