title: Create UIViews programmatically in Objective-C and put that in a closure
body: <p>In Swift I would do this to create a UIView in a kind of closure (I think this is a closure), how can I do this same exact thing in objective-C?
  I don't want to set up all the variables and stuff like that in ViewDidLoad().
  Thanks for your help.</p>
  
  <pre><code>let myView: UIView = {
      let view = UIView()
      view.layer.masksToBounds = true
      view.layer.cornerRadius = 5
      view.translatesAutoresizingMaskIntoConstraints = false
      return view
  }()
  </code></pre>