- (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item {
NSInteger state;
state=0;
BOOL B = [item.title isEqualToString:@"工具"];
NSLog(@"123");
if (state==0 && B) {
[self performSelector:@selector(pertabBatitm) withObject:nil afterDelay:0];
}
}
- (void)pertabBatitm {
NSLog(@"456");
self.selectedIndex =3;
}
NSInteger state;
state=0;
BOOL B = [item.title isEqualToString:@"工具"];
NSLog(@"123");
if (state==0 && B) {
[self performSelector:@selector(pertabBatitm) withObject:nil afterDelay:0];
}
}
- (void)pertabBatitm {
NSLog(@"456");
self.selectedIndex =3;
}