josshad / ehhorizontalselectionview Goto Github PK
View Code? Open in Web Editor NEWHorizontal table view style controller
License: MIT License
Horizontal table view style controller
License: MIT License
I am getting this error when using swift 3
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle
</Users/soomroshahid/Library/Developer/CoreSimulator/Devices/608B89C1-6BB2-4486-B747-4E8BCD976E8B/data/Containers/Bundle/Application/A0656148-9E39-4907-8D1B-3B965E8ACA70/SmartMart.app/Frameworks/EHHorizontalSelectionView.framework> (loaded)' with name 'EHHorizontalViewCell''
Hi
When i set selectIndex
to specific index, its not moving. Any suggestion ?
Thanks
Depending on the background color for the control and the background color for the selected view, selected/non-selected font colors, in several cases, should not be forced to be the same. For example, I use a white control background and a dark selected background. So it would make most sense for me to use a dark font color for the Non-selected sections and a white font color for the selected section. However, there is currently no way to do this with the control.
the needCentred does not work because the + (void)updateNeedCentered:(BOOL)needCentered saves the value using the needCentered key and the getter is needCentred.
Hi,
i have a Problem with the current version.
The Interfacebuilder can't render the ViewController where the EHHorizontalSelectionView is in.
I tried removing the class from the IB Object and it worked again.
Please help.
kind regards, Felix
pathToStoryboard/Main.storyboard: error: IB Designables: Failed to render and update auto layout status for ViewController (XXX-XXX-XXX): Failed to load designables from path (null)
I have tried but I cannot find a way to have every section be the same width. Is this possible, and if so, how?
When using the LineViewCell and you have a cell selected at beginning of the SelectionView and then scroll to the far cell that was off-screen and select the far cell and scroll back to the first cell both will appear to be selected.
This is due to the fact that the cells are reusable and when a cell is selected, and scrolled off-screen, in the 'didSelectItemAtIndexPath' the collection view is unable to find the cell at the '_selectedIndex' since it is now offscreen and dequeued when using '[collectionView cellAtIndex..]'
A quick solution I came up with was to add a '_selectedCell' variable of type EEHorizontalViewCell in the EHHorizontalSelectionView class which will always give us access to the currently selected cell.
I can do a pull request for my code if you'd like.
PS. Thanks for sharing your selectionview :)
I was added all three methods in my swift view controller
func numberOfItemsInHorizontalSelection(hSelView: EHHorizontalSelectionView) -> UInt {
}
func titleForItemAtIndex(index: Int, forHorisontalSelection hSelView: EHHorizontalSelectionView) -> String? {
}
func horizontalSelection(hSelView: EHHorizontalSelectionView, didSelectObjectAtIndex index: UInt) {
}
getting error for protocol does not confirmed.
please help me.
Thanks.
I've a simple list of items that change during time, but reloadData()
don't change titles.
I've no errors but the datasource list remain always the same as started. I've try to take a look through breakpoints and the array changed but the list inside the EHHorizontalSelectionView "collectionView" don't change.
Hi Danila, I am creating EHHorizontalSelectionView programmatically, means I don't have a storyboard or a XIB in my entire project. I am getting this exception when doing it. Can you help me to sort out what I am doing wrong?
2016-09-14 20:27:39.887 EHHorizontalSelectionViewExample[6606:203316] *** Assertion failure in -[UICollectionView _dequeueReusableViewOfKind:withIdentifier:forIndexPath:viewCategory:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3512.60.7/UICollectionView.m:3994
2016-09-14 20:27:39.892 EHHorizontalSelectionViewExample[6606:203316] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'could not dequeue a view of kind: UICollectionElementKindCell with identifier EHHorizontalLineViewCell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'
This is what I am doing:
hSelView4 = [[EHHorizontalSelectionView alloc] init];
hSelView4.frame = CGRectMake(0, 400.0f, 320.0, 60.0f);
hSelView4.delegate = self;
[self.view addSubview:hSelView4];
[hSelView4 registerCellWithClass:[EHRoundedHorizontalViewCell class]];
I have also implemented it's datasource methods.
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.