title: Present UIViewController as a modal with transparent background
body: <p>I'm trying to present a viewcontroller with a transparent background on both iOS 7 and iOS 8.
  Just by changing the viewcontroller's modalPresentationStyle property to FormSheet I can get it working on iOS 7.1.</p>
  <p>What I want is a universal way to that on ios7+</p>
  <p>I have tried using other options to modalPresentationStyle, like: OverCurrentContext, CurrentContext and PageSheet.</p>
  <p>I also tried to use the modalPresentationStyle.Custom but didnt have any success.</p>
  <p>I have NavigationController if that helps in anything.</p>
  <p>The code for the presenting view controller:</p>
  <pre><code>InfoViewController *info = [[InfoViewController alloc] initWithNibName:@&quot;InfoViewController&quot; bundle:nil];
  [self presentViewController:info animated:YES completion:nil];
  </code></pre>
  <p>And the code for the viewDidLoad(which I think has a relevant part on this) of the presented ViewController:</p>
  <pre><code>override func viewDidLoad() {
      super.viewDidLoad()
      // Do any additional setup after loading the view.
      self.modalPresentationStyle = UIModalPresentationStyle.PageSheet
  }
  </code></pre>
  <p>I´m using swift and Xcode 6.
  Here´s a screenshot of what I have now and of what I want, respectively:</p>
  <p><img src="https://i.stack.imgur.com/wf3Fe.png" alt="enter image description here" /><img src="https://i.stack.imgur.com/vTJ4I.png" alt="enter image description here" /></p>
  <p>Here's an example code: <a href="https://github.com/pbassut/TransBackgroundViewController" rel="noreferrer">https://github.com/pbassut/TransBackgroundViewController</a></p>