Git Product home page Git Product logo

cubeview's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cubeview's Issues

numPagesForCubeView == 1

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

Scroll to page programmatically

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:

  • (void)scrollCubeViewToPage:(int)page animationDuration:(NSTimeInterval)duration

Thanks a million times for your help!
Cheers
Chris

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.