iOS将一个viewcontroller的view加到self.view上

来源:互联网 发布:mac 涂鸦软件 编辑:程序博客网 时间:2024/05/17 09:25
        UIViewController *vc = [[UIViewController alloc] init];        [self addChildViewController:vc];        vc.view.frame = self.view.bounds;        [self.view addSubview:vc.view];        [vc didMoveToParentViewController:self];
0 0
原创粉丝点击