moyunmo / cmtabbarview Goto Github PK
View Code? Open in Web Editor NEWCMTabbarView is a scrolling tab bar,provides a simple to implement view like NetEase News
License: MIT License
CMTabbarView is a scrolling tab bar,provides a simple to implement view like NetEase News
License: MIT License
[self.collectionView scrollToItemAtIndexPath:indexPath atScrollPosition:UICollectionViewScrollPositionCenteredVertically | UICollectionViewScrollPositionLeft animated:NO];
this code isn't working, I tried it, but it always go for UICollectionViewScrollPositionCenteredHorizontally.
First of all thanks for the great component!
I'm trying to initializate it with a tab different from first one as default.
The VC receives the selected tab and try to set it in the component
_tabbarView.defaultSelectedIndex = start;
[_tabbarView setTabIndex:start animated:true];
But both the tab 0 and the one I want to select are selected. Also even with animated = true, the selected tab is not centered on screen
Hi!
Thanks for your work.
I have a trouble with setting default tab index that is off the screen.
If i have 10 tab items and screen shows only 4 first, then if i will set the default index > 4 - hi is not appears at screen, until i'll scroll it.
How i can do it?
Thanks.
Hi,
First of all, congratulations for your work, isn't a huge project but works well and have a easy usage and instalation.
My suggestion is to you make the ability to initialise using a Storyboard, i think is a good feature to have because i tried to initialize and the final result wasn't the same.
Other suggestion, linked with the previous one, is to add the @IBOutlet
to the delegate
and dataSource
, in case of you add the possibility to create a CMTabbarView
via Storyboard.
Thank you and good luck.
Any way to center the tabs horizontally when they don't take up the whole screen width?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.