private func moveToController(at index:Int,animated:Bool){
if let controller = controllers[index] {
// Deselect all the buttons excepting the selected one.
for i in 0 ..< self.tabIcons.count{
--> let button:UIButton = self.buttons[i] as! UIButton
I set a breakpoint, and it looks like self.buttons is nil.
Hi again,
Sorry to bother you with another issue but I'm getting a crash when I try to manually set the selected index:
when this runs, it crashes here:
I set a breakpoint, and it looks like self.buttons is nil.