i used to say in obj-c
[self.tabBarController.viewControllers objectAtIndex:1];
but now in swift no ObjectAtIndex any more
self.tabBarController.viewControllers.ObjectAtIndex
Update
ok i am gonna make it simple lets consider i have tabBarController it contains 2 object [FirstViewController,SecondViewController] and i am trying to make a delegate between the object here is the code to set the delegate
var Svc:SecondViewController = self.tabBarController.viewControllers[1] as SecondViewController!
Svc.delegate = self
when i Run , i got this error 0x1064de80d: movq %r14, %rax and no console error is showing up
UINavigationController
and now i should pass the UINavigationController first right ? – Moises