以后修改系统自带的控件 注意

该设置的东西设置完,然后再去赋值

[self setValue:tabBar forKeyPath:@"tabBar"];//这行代码过后,tabbar的delegate就是HWTabBarViewController

如果tabBar 设置完 delegate后,再执行这行代码修改 delegate,就会报错

 

posted @ 2016-10-25 18:08  IOSyes  阅读(170)  评论(0编辑  收藏  举报