title: dismissViewControllerAnimated close all view controller to root [swift]
body: <p>let's say I've 4 view controller</p>
  
  <p><strong>page 1</strong> ----showdetail----> <strong>page 2</strong> ----showdetail----> <strong>page 3</strong> ----showdetail----> <strong>page 4</strong></p>
  
  <p>I want to go back to page 3 from page 4 with <code>self.dismissViewControllerAnimated(true, completion: nil)</code>. It works fine in iOS 9 but it closes all view controller to page 1 when i try it in iOS 8 device</p>