The number circle in the upper right corner of the icon is set in the tabbarcontroller as shown in the figure

Time:2021-2-26
//Contents in the upper right corner of the icon
    self.tabBarItem.badgeValue= @"5"; operation effect: