Giter VIP home page Giter VIP logo

Comments (9)

ermalkaleci avatar ermalkaleci commented on July 21, 2024

Hi @ValentinDenis

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.

ValentinDenis avatar ValentinDenis commented on July 21, 2024

Works perfectly, thanks !

from carbonkit.

ZoeVale avatar ZoeVale commented on July 21, 2024

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.

ermalkaleci avatar ermalkaleci commented on July 21, 2024

Hi @ZoeVale,
Ensure your are calling [tabSwipe setCurrentTabIndex:0]; outside the loop

from carbonkit.

ZoeVale avatar ZoeVale commented on July 21, 2024

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.

ermalkaleci avatar ermalkaleci commented on July 21, 2024

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.

ZoeVale avatar ZoeVale commented on July 21, 2024

Thank you man.
I have some problem to use CocoaPods can you tell me which version i can use please?

from carbonkit.

ermalkaleci avatar ermalkaleci commented on July 21, 2024

use the last release
https://github.com/ermalkaleci/CarbonKit/releases/tag/1.1.2

from carbonkit.

ZoeVale avatar ZoeVale commented on July 21, 2024

I'm going to use this version tomorrow.
Thank you very much. ;-)

from carbonkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.