Question

Writing up an code for creating table view in such a manner when user scroll table view it behaves like cube. Please find below youtube link for the vision what I am asking for:

http://www.youtube.com/watch?v=hrBxHq83yKQ

Meanwhile, I tried with CATransform3D transform = CATransform3DMakeRotation(angle, 1, 0, 0); and it working for adding up an row at the top but not for scrolling.

Further, due to lack of knowledge of OpenGLES I can not go with it for rotating the cubes with touch gesture. Please suggest for the same as per your feasibility.

Look forward to hear from you.

Was it helpful?

Solution 3

I got an answer for cubical scrolling. Earlier I was using below source code link:

GestureBasedTableViewDemo

Meanwhile, above tableview demo was using gesture and allow me to only add first row in tableview cell while scrolling down but my requirement was to have cubical scrolling up or down both.

Further, I tried with vertical iCarousel cylindrical and I achieved the vertical cubical scrolling. Thanks

OTHER TIPS

you can achieve this effects with Layer transform and a scrollview. To build a cube take a look at this post. You might add some overlays to your cube-sides to simulate lightning and you are done.

You might also want to check our implementation of a gesture based 3D-cube over at Chubamobile: http://www.chupamobile.com/products/details/2106/Cube+Selector/

It's fully featured, ready to use out of the box - and pretty much exactly what you want

Maybe it helps.

CATransition *animation = [CATransition animation];
    animation.duration = 1;
    animation.type = @"cube";
    animation.subtype = @"fromRight";
    [self.contentView.layer addAnimation:animation forKey:@"animation"];

    [self.contentView bringSubviewToFront:view];

or that link http://www.albertopasca.it/whiletrue/objectivec-3d-view-rotation/

Don't dislike - there are few information about it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top