我想在单击iOS UITabbarItem
时刷新抖动。我该怎么办?
能给我一个例子吗?
- (void)setupSubFlutterNav {
_vc1 = [[FlutterViewController alloc] init];
[_vc1 setInitialRoute:@"/route"];
_vc1.tabBarItem = [[UITabBarItem alloc] init];
_vc2 = [[UIViewController alloc] init];
UINavigationController *nav2 = [[UINavigationController alloc] initWithRootViewController:_vc2];
nav2.tabBarItem = [[UITabBarItem alloc] init];
_vc3 = [[UIViewController alloc] init];
UINavigationController *nav3 = [[UINavigationController alloc] initWithRootViewController:_vc3];
nav3.tabBarItem = [[UITabBarItem alloc] init];
self.viewControllers = @[_vc1, nav2, nav3];
}