Comments (9)
Yes it's possible.
If you call setCurrentTabIndex methods foreach tabs and then call again setCurrentTabIndex with index 0 or whatever.
lets say:
for (int i = 1; i < numberOfTabs; i++)
[tabSwipe setCurrentTabIndex:i];
[tabSwipe setCurrentTabIndex:0];
Thanks
from carbonkit.
Works perfectly, thanks !
from carbonkit.
Hi, excuse me but the solution
for (int i = 1; i < numberOfTabs; i++)
[tabSwipe setCurrentTabIndex:i];
[tabSwipe setCurrentTabIndex:0];
don't works .
Can you help me please ? It's don't call TabIndex with index 0 but remains in TabIndex 2 (i Hanve e tab 0,1, 2 )
thank's in advance.
from carbonkit.
Hi @ZoeVale,
Ensure your are calling [tabSwipe setCurrentTabIndex:0]; outside the loop
from carbonkit.
Hi, yes.
thi is my code:
I created a method "careateTabSwipes" that i call in my viewDidLoad
-
(void) createTabSwipes {
//tabSwipe
_names = @[@"EVENTI", @"COUPON", @"STRUTTURE"];tabSwipe = [[CarbonTabSwipeNavigation alloc] createWithRootViewController:self
tabNames:_names
tintColor:[UIColor wadagoBlack]
delegate:self];[ tabSwipe setSelectedColor:[UIColor whiteColor]
andIndicatorColor:[UIColor wadagoGreen]
font:[UIFont boldSystemFontOfSize:14]];[tabSwipe setIndicatorHeight:4.f];
[tabSwipe addShadow];for (int i = 1; i < 3; i++)
[tabSwipe setCurrentTabIndex:i];
[tabSwipe setCurrentTabIndex:0];
}
from carbonkit.
Confirmed!
The last commit was for animation when click the tab. This cause the bug.
Do not use latest code. Use CocoaPods version
from carbonkit.
Thank you man.
I have some problem to use CocoaPods can you tell me which version i can use please?
from carbonkit.
use the last release
https://github.com/ermalkaleci/CarbonKit/releases/tag/1.1.2
from carbonkit.
I'm going to use this version tomorrow.
Thank you very much. ;-)
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.