Add a UIDevice category for determine current system version float value.  There are two rows of code using “window.tintColor = ....”, and window.tintColor is new feature begin iOS 7.  I inserted a version condition by UIDevice category before using window.tintColor.