[已解决]Swift代码出错:Cannot subscript a value of type [UIViewController] with an index of type UInt
crifan 10年前 (2015-10-15) 4915浏览 0评论
[背景] swift中的代码: var viewControllers = [UIViewController]() ... let toViewController:UIViewController = self.viewControllers[...
![[已解决]Swift代码出错:Cannot subscript a value of type [UIViewController] with an index of type UInt](https://www.crifan.org/files/pic/uploads/2016/05/Cannot-subscript-a-value-of-type-UIViewController-with-an-index-of-type-UInt.png)