Closed subhash08 closed 9 years ago
Hey @subhash08 you mean tabs and navigationBar with the same color?
Hello @ermalkaleci sorry , week in english. i wants tabs and navigationBar with diffrent color tabs in white color and navigationBar in green color. look this image "how can i change tabs background in white"
just set tintColor: white
[[CarbonTabSwipeNavigation alloc] createWithRootViewController:self tabNames:names tintColor:[UIColor whiteColor] delegate:self];
you have the code above please stop calling me sir, my username is OK
thanks @ermalkaleci
did you fix it?
yes i did @ermalkaleci
I'm calling sir just becouse of you are very senior in iOS development and I'm just a new comer.
If you don't like I'll not call you sir again. :)
I'm not your boss ;-) I am closing this issue, OK?
ok
I'm actually having the exact same issue. When setting the tint colour within the creation method (using the below code) the navigationbar of that view takes the same colour
var color: UIColor = UIColor(red: 0.7, green: 0.7, blue: 0.7, alpha: 1) tabSwipe.createWithRootViewController(self, tabNames: names, tintColor: color, delegate: self)
I have tried programmatically overriding the navigation bar color within viewdidload however this doesn't seem to work either
UINavigationBar.appearance().backgroundColor = UIColor.greenColor()
how did you manage to fix this issue?
Thanks very much in anticipation of your response.
Don't copy/paste the example. OnViewDidApper you have called setTranslucent to NO. This fit the navigation color with the same color.
ah of course! you're 100% right, thank you so much for the help once again
how to set the image color in segment control use in carbon it
@Narendratha follow the example
@ermalkaleci [[CarbonTabSwipeNavigation alloc] createWithRootViewController:self tabNames:names tintColor:[UIColor whiteColor] delegate:self]; this line where i put ? in which class ?
Please checkout the example project.
checkout .. but i can't Change NavigationBar Color. So, Please tell me the Proper Code and Guide me.
@JannyKul how to let the line between navigationbar and carbonTabSwipeNavigation disappear?
@MemetiDrak like you do normally. It's navigation bar shadow line
@ermalkaleci Thank you for your guidance,The problem is solved now.thank you.
how to set image with name like here is showing tabbar with title and image like as carbon kit
can i change a carbankit heigth ?
@astrolka see example app
@ermalkaleci oh sorry, i have just understood that there is just segmentedcontrol :D P.s. In this example i have found nothing about this issue
Hello
@ermalkaleci https://github.com/ermalkaleci How can text+image of CarbonTabSwipeNavigation? i am use image but ui not show proper if any way to use both of them. Thankig You
Regards Hitendra Lariya IOS Developer.
@ermalkaleci Hello i have two question about carbankit segment controll
Very good job! Thank you very much it is the best lib.
how to swipe the view controllers through programmatically in carbon tab swipe navigation....
Hi How can I change the swipe direction of carbon kit pagecontroller.
how to set carbon kit navigation segment title text in two line
when i swipe controller carbon navigation title change but when i swipe carbon navigation but my controller not changed. how can i change my controller class when i swipe carbon navigation
Can I make tabs like this in swift? With selected tab background color is changed and unselected tabs color is changed. If yes then how? Because all I found were setIndicatorColor, setNormalColor and setSelectedColor
since nobody gave u the code, here it is:
self.carbonTabSwipeNavigation.toolbar.barTintColor = [UIColor greenColor];
self.carbonTabSwipeNavigation.toolbar.translucent = NO;
@CavalcanteLeo Thank you for your answer and this successfully changed the background color but can I change the color of selected tab? Like in the image I've attached the selected tabs is white in color and the unselected are light blue?
Hi @thechaudharysab
did you resolve this? I need to do same thing as you have asked.
Hi
If anybody is looking for as asked by @thechaudharysab , here is the solution (with text only)
CarbonTabSwipeSegmentedControl.m
Create custom function
-(void)syncSegmentBgColor { for (UIView *segment in self.segments) {
if ([self.segments indexOfObject:segment] == self.selectedSegmentIndex) {
segment.backgroundColor = [UIColor colorWithRed:102.0/255.0f green:124.0/255.0f blue:189.0/255.0f alpha:1];
} else {
segment.backgroundColor = [UIColor whiteColor];
}}}
Call it from setSelectedSegmentIndex e.g
-(void)setSelectedSegmentIndex:(NSInteger)selectedSegmentIndex { [super setSelectedSegmentIndex:selectedSegmentIndex]; [self syncSegmentBgColor]; }
Is it possible to show both icon and name as Items heading
If possible kindly share the code
Dear @ermalkaleci ,
Hope you are doing well.
I am getting an issue only in iPad,I have CarbonTabSwipeNavigation with two tabs. in iPhone it is working fine . but in case of iPad I have issue regarding navigation i.e in status bar and CarbonTabSwipeNavigation have some black screen. I do'nt know how it will fix. Can you help me for the same , if have any idea.
Waiting for your positive feedback.
Can I make tabs like this in swift? With selected tab background color is changed and unselected tabs color is changed. If yes then how? Because all I found were setIndicatorColor, setNormalColor and setSelectedColor
Did you get solution for this ? I want to do same thing.
hello sir, with respect. i want the color of tapSwipeNavigationBar is different from my ViewControllers default UINavigationbar`s color like in this pic