English 中文(简体)
背 景 亲眼镜滚动效应(家庭屏幕上的立体)
原标题:View Behind View rolldown effect on iOS (Like folders on home screen)

达到目标C所载观点的双管滚动效应的最佳途径是什么?

最佳回答

我尝试了类似于马克斯·菲什所描述的内容。 可在以下网站查阅:iOS Open Folder Animation Sample Code

问题回答

If you take a look at the images inside the Springboard.app in your iPhone in "/System/Library/CoreServices" you can have an idea of how the animation works. A simple version of the effect can be done this way:

  1. Take a screenshot of the screen you want to "cut" and save it in an image
  2. Create two imageviews each of which has a part of the screenshot (e.g. the first has the first upper part of the image as background, the second the rest), you could alternative use the same background image for both views, you have only to play with content alignments.
  3. Place the two views on the original screen in the exact position to make them seem like one entire image perfectly aligned with the original screen.
  4. Create a view (folder content) with its own background and whatever you want to put inside, place it at the same Y of the bottom imageview but beneath it.
  5. Make the bottom image view scroll down for the entire size of the content view, you will see the folder content appear.

iOS version put on the sliding images some nice borders and applies fade effect which make the overall animation really cool. You can sure try and make it nice looking. Hope this helps





相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签