jexe / cubeview Goto Github PK
View Code? Open in Web Editor NEWA simple way to map UIViews onto a 3D cube.
License: Other
A simple way to map UIViews onto a 3D cube.
License: Other
Hi
Really nice component.
When playing around with it I figured out that when setting numPagesForCubeView to 1 the views are screwed up. It would be nice if the single page view would be visible and the top and button edge panes would appear if the user tries to drag
Kind regards
Hi Jesse,
we are using CubeView extensively as one of our main UI assets. However, when it comes to the details, I'm struggling to understand your implementation, mostly because I have only a very basic understanding of CoreAnimation.
Could you hint me in a direction of how to programmatically scroll the cube to the previous/next page?
I basically get it to work by exposing the scrollView-property and using scrollRectToVisible:Animated: to scroll to multiples of the bound-width. However, this fails when there are more than 3 pages.
I'm guessing it has a lot to do with:
if ([delegate numPagesForCubeView:self] > 2) {
self.scrollView.contentSize = CGSizeMake(self.bounds.size.width * 3, self.bounds.size.height);
I think I also have a basic misconception of how the cube animation and the scrollView are coupled.
So again my question:
Could you hint me in a direction of how to programmatically scroll the cube to the previous/next page?
Ideally, how could I implement this:
Thanks a million times for your help!
Cheers
Chris
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.