Chen
Chen

Reputation: 309

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 tableViews.

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?

enter image description here

Upvotes: 0

Views: 2065

Answers (1)

iOS Geek
iOS Geek

Reputation: 4855

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

enter image description here

Constraint for scrollView ContentView [Must]

enter image description here

Here are outlets and code Required

enter image description here

and my simulator output is here

enter image description here

secondView

enter image description here

enter image description here

Upvotes: 3

Related Questions