简体   繁体   English

UICollectionView在iPhone上的效果

[英]UICollectionView effect on iPhone

I'm writing an application and I would like to insert the same effect as this photo below. 我正在编写一个应用程序,我想在下面插入与这张照片相同的效果。 I think it was implemented a collection view but I do not understand how to create the effect that is seen by the red arrow. 我认为它是实现了集合视图,但我不明白如何创建红色箭头所示的效果。 I think they are three cells one above the other but with a different angle Can you help? 我认为它们是三个单元格,彼此上方,但角度不同。您能帮上忙吗? Thanks UICollectionView Effect 谢谢UICollectionView效果

PS: Sorry for link but i don't have sufficient point for insert image PS:对不起,链接,但我没有足够的观点来插入图像

This tutorial achieves that. 本教程实现了这一目标。 Look at steps 53-55. 查看步骤53-55。

The way he does it there is to have more photos for each section. 他这样做的方式是每个部分都有更多照片。 You could also do it in a simpler way by just drawing 1-2 UIViews below each cell and rotate them just so that only their edges appear. 您也可以通过在每个单元格下方绘制1-2个UIView并旋转它们以使其仅出现其边缘的方式,以更简单的方式进行操作。

It depends on the effect you are after. 这取决于您所追求的效果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM