Comments (41)
you have the code above
please stop calling me sir, my username is OK
from carbonkit.
I'm not your boss ;-)
I am closing this issue, OK?
from carbonkit.
checkout .. but i can't Change NavigationBar Color. So, Please tell me the Proper Code and Guide me.
from carbonkit.
Hey @subhash08
you mean tabs and navigationBar with the same color?
from carbonkit.
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"
from carbonkit.
just set tintColor: white
[[CarbonTabSwipeNavigation alloc] createWithRootViewController:self tabNames:names tintColor:[UIColor whiteColor] delegate:self];
from carbonkit.
thanks @ermalkaleci
from carbonkit.
did you fix it?
from carbonkit.
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. :)
from carbonkit.
ok
from carbonkit.
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.
from carbonkit.
Don't copy/paste the example.
OnViewDidApper you have called setTranslucent to NO. This fit the navigation color with the same color.
from carbonkit.
ah of course! you're 100% right, thank you so much for the help once again
from carbonkit.
how to set the image color in segment control use in carbon it
from carbonkit.
@Narendratha follow the example
from carbonkit.
@ermalkaleci [[CarbonTabSwipeNavigation alloc] createWithRootViewController:self tabNames:names tintColor:[UIColor whiteColor] delegate:self];
this line where i put ? in which class ?
from carbonkit.
Please checkout the example project.
from carbonkit.
@JannyKul how to let the line between navigationbar and carbonTabSwipeNavigation disappear?
from carbonkit.
from carbonkit.
@MemetiDrak like you do normally. It's navigation bar shadow line
from carbonkit.
@ermalkaleci
Thank you for your guidance,The problem is solved now.thank you.
from carbonkit.
how to set image with name like here is showing tabbar with title and image like as carbon kit
from carbonkit.
can i change a carbankit heigth ?
from carbonkit.
@astrolka see example app
from carbonkit.
@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
from carbonkit.
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.
from carbonkit.
@ermalkaleci
Hello
i have two question about carbankit segment controll
- the first thing is how i show badge bar on carban kit segment
- and second thing is how to switch next controller or back controller programatically
please reply me .
from carbonkit.
Very good job! Thank you very much it is the best lib.
from carbonkit.
how to swipe the view controllers through programmatically in carbon tab swipe navigation....
from carbonkit.
Hi
How can I change the swipe direction of carbon kit pagecontroller.
from carbonkit.
how to set carbon kit navigation segment title text in two line
from carbonkit.
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
from carbonkit.
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
from carbonkit.
since nobody gave u the code, here it is:
self.carbonTabSwipeNavigation.toolbar.barTintColor = [UIColor greenColor];
self.carbonTabSwipeNavigation.toolbar.translucent = NO;
from carbonkit.
@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?
from carbonkit.
did you resolve this? I need to do same thing as you have asked.
from carbonkit.
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];
}
from carbonkit.
Is it possible to show both icon and name as Items heading
from carbonkit.
If possible kindly share the code
from carbonkit.
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.
from carbonkit.
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.
from carbonkit.
Related Issues (20)
- iOS 13 Crash and just find issues.Please repair it as soon as possible. HOT 1
- iOS 13 Crash and just find issues.Please repair it as soon as possible. HOT 28
- iOS 13 Crash: returned nil from -traitCollection, which is not allowed. HOT 1
- swipe not work in iOS 13 HOT 2
- swipe not work in iOS 13 in real device but in simulator working fine HOT 1
- Tab no more scrollable HOT 4
- Get error when initial CarbonTabSwipeNavigation in iOS 10
- How to change selected tab background color ? HOT 1
- NSInternalInconsistencyException error in iOS 13.2.2 and Xcode 11.3.1 Beta HOT 10
- clear the selected colour of segment controller HOT 4
- Full screen - Notch issue
- Change Selected index Background color
- CarbonKit toolbar Position change
- Method "initWithItems:toolbar:delegate" marked as deprecated
- Why it is showing like default segment controls?
- target view was not working
- Add a mask when tab changes HOT 1
- carbon kit freezes rest of the app works fine HOT 1
- how can I change colour of bar it looks like this and as per our requirement we need white colour HOT 2
- Unable to swipe after tapped on any tab
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carbonkit.