星空网 > 软件开发 > 操作系统

childViewController 小计

设置childViewcontroller 

self.ganZhi_vc = [board instantiateViewControllerWithIdentifier:@"HDGanZhiViewController"];  [self addChildViewController:self.ganZhi_vc];    self.data_vc = [board instantiateViewControllerWithIdentifier:@"HDDataViewController"];  [self addChildViewController:self.data_vc];    self.map_vc = [board instantiateViewControllerWithIdentifier:@"HDMapViewController"];  [self addChildViewController:self.map_vc];    self.code_vc = [board instantiateViewControllerWithIdentifier:@"HDCodeViewController"];  [self addChildViewController:self.code_vc];    [self.view addSubview:self.root_vc.view];  [self.root_vc didMoveToParentViewController:self];  _currentViewController = self.root_vc;

界面跳转

-(void)changeViewControllerWith:(UIViewController *)temp{  if (_currentViewController != temp) {    __weak ViewController *weaSelf = self;    [self transitionFromViewController:_currentViewController toViewController:temp duration:1.0 options:UIViewAnimationOptionLayoutSubviews animations:nil completion:^(BOOL finished) {    }];    _currentViewController = temp;  }  }

 




原标题:childViewController 小计

关键词:ie

ie
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

美国fba进仓:https://www.goluckyvip.com/tag/38023.html
美国fba卡派:https://www.goluckyvip.com/tag/38024.html
美国fba可以发到加拿大吗:https://www.goluckyvip.com/tag/38025.html
美国fba可以吗:https://www.goluckyvip.com/tag/38026.html
美国fba空加派:https://www.goluckyvip.com/tag/38027.html
美国fba空派:https://www.goluckyvip.com/tag/38028.html
春季热卖单品!空气净化器单周销售额近三十万!:https://www.kjdsnews.com/a/1836547.html
春季热卖单品!空气净化器单周销售额近三十万!:https://www.goluckyvip.com/news/188215.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流