iOS Thread 1: “Changing the delegate of a tab bar managed by a tab bar controller is not allowed.“

0x00 多此一举

当我试图改变 UITabBarControllertabBardelegate
系统给我抛出一个错误,并终止的程序:
Thread 1: "Changing the delegate of a tab bar managed by a tab bar controller is not allowed."

虽然我是在继承 UITabBarController 的子类里面改的

self.tabBar.delegate = self;

但这个操作,似乎是有点多余 Q_Q
UITabBarControllertabBardelegate,本应该就是 UITabBarController
即使你再设置为它本身,系统也不允许 T_T


文本点击,如此简单

https://github.com/xjh093/JHTapTextView


猜你喜欢

转载自blog.csdn.net/xjh093/article/details/114920345
今日推荐