iOS向Flutter发送消息

时间:2019-01-29 11:12:20

标签: ios flutter

我想在单击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];
}

0 个答案:

没有答案