0
我有一个代码为UItabviewcontroller使用编程方式,但如何创建其框架,因为我在我的应用程序中使用我需要x,y宽度和高度坐标的子视图。我们可以使用UITabBarController * tabBarController = [[UITabBarController alloc] init];如何创建与框架UITabviewcontroller
UIViewController *vc1 = [[UIViewController alloc] init];
UIViewController *vc2 = [[UIViewController alloc] init];
UIView *v1 = [[UIView alloc] init];
UIView *v2 = [[UIView alloc] init];
vc1.title = @"vc1";
vc2.title = @"vc2";
tabBarController.viewControllers = [[NSArray alloc] initWithObjects:vc1, vc2, nil];
self.view = tabBarController.view;