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

xiaoxiao2021-02-28  108

UIViewController *vc = [[UIViewController alloc] init]; [self addChildViewController:vc]; vc.view.frame = self.view.bounds; [self.view addSubview:vc.view]; [vc didMoveToParentViewController:self];
转载请注明原文地址: https://www.6miu.com/read-22348.html

最新回复(0)