Minitour / AZTabBarController

A custom tab bar controller for iOS written in Swift 4.2
MIT License
348 stars 65 forks source link

Calling setButtonTintColor(color: UIColor, atIndex: Int) in VC viewDidAppear() causes crash #32

Closed BrettRosen closed 6 years ago

BrettRosen commented 6 years ago

Calling:

tabController.setButtonTintColor(color: UIColor, atIndex: Int) in the viewDidAppear() method of the VC in which you are using tabController causes a crash because self.buttons seems to be nil at the time.

Minitour commented 6 years ago

@BrettRosen I re-implemented the entire function. I tested some use-case examples and it seems pretty stable. Feel free to report any issues sorry for the delay 😅

The new pod release is 1.3.2. Feel free to close the issue when you solve your problem.

Thanks for contributing 😁