CGSize viewSize = self.view.bounds.size;
CGFloat tabBarStartingY = viewSize.height;
CGFloat tabBarHeight = 110;
JJTabBar *customTabBar = [[JJTabBar alloc] initWithFrame: CGRectMake(15, tabBarStartingY - tabBarHeight, viewSize.width-30, 80) config:config];
customTabBar.backgroundColor = [UIColor clearColor];
customTabBar.delegate = self;
customTabBar.layer.cornerRadius = 30;
customTabBar.layer.masksToBounds = true;
[self.view addSubview:customTabBar];
self.customTabBar = customTabBar;
好用简单方便,
可以自定义各种样式
demo
网友评论