Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

CarbonTabSwipeNavigation : How to set a particular index as the initial viewcontroller?(say index : 2) #54

Closed
abhimuralidharan opened this issue Jan 15, 2016 · 4 comments

Comments

@abhimuralidharan
Copy link

Your code is awesome.But how to set the second index as the initial view?Thanks.

@abhimuralidharan
Copy link
Author

Solved the issue:

Added an extra parameter "initialIndex" while initialising the CarbonTabSwipeNavigation,and this initialIndex is used to set the selectedIndex property in the CarbonTabSwipeNavigation.m file

  • (instancetype)initWithItems:(nullable NSArray *)items
    toolBar:(nonnull UIToolbar *)toolBar
    delegate:(nonnull id)target initialIndex:(NSUInteger)initialIndex;

@ermalkaleci
Copy link
Owner

You can use also setCurrentIndex method. Anyway you hacked by yourself 👍

@jonysingla
Copy link

There is some spacing when used iPhone 6. How to resolve this.

screen shot 2017-10-28 at 11 20 20 am

@hariios123
Copy link

Hi i am using carbonkit in my project it is possible to highlight particular tabbar without moving to that tabbar.
For example:
If i scroll in first tab after some scroll height is it is possible to highlight second tabbar without moving to that tabbar index page.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants