Scroll tableview cell in cube effect in iOS?

╄→гoц情女王★ 提交于 2019-12-12 17:15:20

问题


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.


回答1:


check it out.. hope it helps you..

Link 1: https://www.cocoacontrols.com/controls/abcustomuinavigationcontroller

Link 2: https://github.com/augustjoki/CubeTabBarController




回答2:


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.




回答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




回答4:


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




回答5:


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.



来源:https://stackoverflow.com/questions/18357377/scroll-tableview-cell-in-cube-effect-in-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!