先上效果图: 假设 tab bar items 有5个.tag为0,1,2,3,4.storyboard中tab bar controller继承的class叫做xxxVC. class xxxVC: UITabBarController { var storedImageViewArr:[UIImageView?] = [] private var times = [Int].init(repeating: 0, count: 5) private var tempTimes = [Int].…