문제

I'm about to create an app with the same technology like the Google+ app. I want to reproduce the "stream"-viewcontroller.

Currently i've set up a scrollview with paging and pagecontrol, but I can't get how the bar under the navigationbar in the Google+-app is created. It shows the titles of the current page and the pages to the left and right. It also has a zoom-effect that zoom in at the current visible pagetitle.

Anyone has any ideas?

도움이 되었습니까?

해결책

One way to do it would be to create your VC, throw a scrollview in it whose x, y and width are the same as your backing view, but whose height is the height of your backing view minus however high you want your titlebar to be. Create a separate view for that. Your paging scrollview will work fine for the content area.

For your titlebar, you'll probably just set up some CABasicAnimations and keep some images off screen, sliding them around as you see fit, or what-have-you. This is one approach you can use.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top