IPhone Google Chrome - tab selection screen (grouped UIViews)

I am working on an application for iOS, and I need to make a tab selection screen, for example, the Google Chrome application for iPhone (I attached a screenshot). I searched a lot, but I did not find any such control. As I see it, it groups some UIViews and uses the UIScrollView scroll, but maybe some of you can explain to me how this control works or some solution.

Thanks!

http://i.stack.imgur.com/rCG5g.png

+4
source share
2 answers
  • Create various UIViews with your controls. (One tab equals UIView)
  • Add this UIView to the UIScroll view. (This is optional. This is normal if you are not using a UIScrollView and add a UIView to self.view
  • Implement the sensory method in UIView.
  • When you access a specific UIView, change its central position to the center of the screen.
  • Which will give you a UIView that touched the foreground and the rest of the views in the background.
0
source

Hope this helps you .........

I solved the problem with this ......

https://github.com/xxhp/BrowserTabViewDemo

0
source

Source: https://habr.com/ru/post/1442130/


All Articles