0
我有PageViewController,我想在這裏展示viewControllerAtIndex是我的代碼:PageViewController崩潰setViewControllers
let startingViewController: MyPages = self.viewControllerAtIndex(0, storyboard: self.storyboard!)!
let viewControllers: NSArray = [startingViewController]
pageViewController.setViewControllers(viewControllers as [AnyObject], direction: .Forward, animated: false, completion: nil)
,但我與Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 0 beyond bounds for empty array'
viewControllers應用程序崩潰不上的println空我有<My_App.MyPages: 0x7fcce9813e00>
這發生在測試版3上的新測試版3適用於測試版2。
鏈接到蘋果開發論壇:https://devforums.apple.com/thread/264976