草庐IT

didSelectTabBarItem

全部标签

iphone - iOS didSelectTabBarItem 知道之前选择了什么项目

我有一个带有UITabBar的IOS应用程序,并将其委托(delegate)设置为我的类。didSelectTabBarItem正确触发,一切正常。HoweverIdohavesomeconditionalcodethathastooccurwhentheUITabBarItemselectedisafteroneparticularUITabBarItemIE..iftheuserclicksontabbaritem3,andtheywere目前在标签栏项目2上,我必须做一些额外的代码,如果用户选择标签栏项目3并且之前在标签栏项目1上,我就不必这样做。So,isthereanyway