该设置的东西设置完,然后再去赋值
[self setValue:tabBar forKeyPath:@"tabBar"];//这行代码过后,tabbar的delegate就是HWTabBarViewController
如果tabBar 设置完 delegate后,再执行这行代码修改 delegate,就会报错
本文共 208 字,大约阅读时间需要 1 分钟。
该设置的东西设置完,然后再去赋值
[self setValue:tabBar forKeyPath:@"tabBar"];//这行代码过后,tabbar的delegate就是HWTabBarViewController
如果tabBar 设置完 delegate后,再执行这行代码修改 delegate,就会报错
转载于:https://www.cnblogs.com/seeworld/p/5997716.html