Background Image on a UIView

Here’s a snippet of code you can use to add a background image to any UIView.

Enjoy.