简体   繁体   中英

How to custom design the scroll view with a tab bar?

I want to make A,B,C touchable buttons, but I also want the user to able to scroll between the related three tableView s.

ScrollView only has three simple dots to show the current view, and I'm not able to touch them. Is there a way that I can design something like the image below?

在此处输入图片说明

here is demo Code in Swift which you can use I Made a basic Code and you can modify it as per Your Requirement use table or collection in View as you require

here is my storyBoard Look

在此处输入图片说明

Constraint for scrollView ContentView [Must]

在此处输入图片说明

Here are outlets and code Required

在此处输入图片说明

and my simulator output is here

在此处输入图片说明

secondView

在此处输入图片说明

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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