UITabBar 弹透明视图VC

UITabBar 弹透明视图VC
1.设置占位Vc
2.在tabarController.view 添加addsubview button
3.设置vc弹出方式 vc.modalPresentation = UIModalPresentationOverCurrentContext 设置背景透明
4.设置占位VC不可点击
a.tabbar遵守代理 UITabBarControllerDelegate
b.设置代理 tabarVC.delegate = self
c.实现代理方法 tabarController shouldSelectViewController
d.如果占位vc等于 tabbarContoller.viewControllers objectAtIndex:x则返回NO不可点击,其他返回YES可点击

你可能感兴趣的:(UITabBar 弹透明视图VC)