robbdimitrov/RDVTabBarController — pull request #23 by mkval (2014-06-30 03:48:56+00:00)
Title: When setting new TabBar items, remove previous ones first.

Inactive `viewControllers` of my RDVTabBarController subclass get purged when memory is low. And so as its TabBarItem objects. The problem when reestablishing again those controllers is that the TabBar items of the purged VCs are still out there on the TabBar, resulting in duplicate tabs. When I checked the code setter of RDVTabBar's item property, it only assumes the same items are being sent over when in fact they're not.