Saturday 15 August 2015

xcode - How to make TabBar transparent -


I want to make the tabbar transparent and still want to leave the icon there. So that when you see it on the tabbar as if they are themselves, do I have code to do this? I currently have this code

  UIImage * tabBarBackground = [UIImage imageNamed: @ ""]; [[UTibber presence] Setbackgram image: Tabbar background]; [[UITebber Presence] SetSecurityist Indicator Image: [UIImage Image Named: @ ""]];    

Try this code

  - (zero ViewDidload {[Super Viewedload]; CGRTF frame = CGRactMake (0.0, 0, Self W. Bounds.Width, 48); UIView * trans_view = [[UIView alloc] initWithFrame: frame]; [Trans_view setbackgroundColor: [[UIColor alloc] initWithRed: 0.0 green: 0.0 blue: 0.0 alpha: 0.5]]; // You can also change alpha values ​​[tabBar1 insertSubview: trans_view atIndex: 0]; // tabBar1 = Your Tabbed Reference [Trans_View Release]; }   

This will also help you

No comments:

Post a Comment