UITabBar有代理方法可以监听:
1. 遵守代理协议:
```
@interface InspectorManagerViewController () <UITabBarDelegate>
```
2. 实现代理方法:
```
- (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item
{
LJLog(@"item name = %@", item.title);
}
```
UITabBar有代理方法可以监听:
1. 遵守代理协议:
```
@interface InspectorManagerViewController () <UITabBarDelegate>
```
2. 实现代理方法:
```
- (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item
{
LJLog(@"item name = %@", item.title);
}
```