Space between custom UITabBar and ViewController

前端 未结 4 1211
抹茶落季
抹茶落季 2021-02-09 20:34

I took a regular UITabBar and changed it\'s background image to a custom one which has a lower height, so I changed the height of the frame

4条回答
  •  抹茶落季
    2021-02-09 21:09

    Change your UITabBarController's subviews to a full-sized frame, this worked for me:

    [[yourTabBarController.view.subviews objectAtIndex:0] setFrame:CGRectMake(0, 0, 320, 480)];
    

提交回复
热议问题