title: Gradient / shadows in UIImageView like Flipboard
body: <p>I'm looking to create a shadow-like-gradient in my <code>UIImageView</code> like how it is in Flipboard.</p>
  
  <p>An example of it is a picture in the this image</p>
  
  <p><img src="https://i.stack.imgur.com/SfcGE.jpg" alt="http://taitegallery.net/wp-content/uploads/2012/01/flipboard-iphone.jpg"></p>
  
  <p>As you can see on the right iPhone, there is a darker gradient at the top and bottom. This is so that if the picture is white, the white text can still be seen.</p>
  
  <p>Anybody have any suggestions on how I can implement this? I am new to iOS development thus clueless about this. Thanks!</p>