Create uiTabBarController programmatically

前端 未结 4 1492
被撕碎了的回忆
被撕碎了的回忆 2021-02-14 09:23

I want to create a UIView for a UITabBarController

Here is my code for the .h file :

@interface TE : UIViewContro         


        
4条回答
  •  -上瘾入骨i
    2021-02-14 09:45

    Change self.view = tabBarController.view; to
    [self.view addSubview:tabBarController.view]; And it works correctly

提交回复
热议问题