自定义tabbar


/**
 * 注意:
*  打开自定义tabbar的背景视图的交互
* 选中的tabb视图高度为tabbar背景视图的高度/2-选中视图高度/2
* 选中视图加载到tabbar背景视图上
* label注意居中,imgView注意选择适应模式,都加载到tabbar背景视图
* 设置点击手势的点击事件
-(void)test:(UITapGestureRecognizer *)tap
{
    //得到点击的视图
    UIView *view = [tap view];
    [UIView beginAnimations:nil context:NULL];
    _selectView.frame = CGRectMake(5+72*view.tag, _tabBarBG.height/2-41.0/2, 70, 44 );
    
    //设置点击切换控制器界面
    self.selectedIndex = view.tag;
}
*/


posted @ 2016-01-20 13:33  Bo-tree  阅读(214)  评论(0编辑  收藏  举报