Published: 20 Jan 2018 › Updated: 20 Jan 2018
我的tabbar突然多了一个空白~~!
这两天因为业务的需要把tab从5个换成了4个。
这不换还好,一换,妈的,最后一个空白是什么玩意?
😤😤😤😡😡😡
查找了一下原因,原来是这个东西搞的鬼。
[self addChildViewController:self.widgetVC];
[self.view addSubview:self.widgetVC.view];
我继承了UITabBarController后,某个地方addChildViewControlleriOS11以下没有问题,但是在iOS11以上,并且tab小于5个的话,就会多出来一个空白块。
😓 😓 😓
Leave 我的tabbar突然多了一个空白~~! to:
Read more #cn posts
Best Posts From decembersola
We have not curated any of decembersola's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.