UIScrollView Autolayout (EASIEST EVER!)

preview_player
Показать описание
Learn UIScrollView Autolayout!

Ready to learn UIScrollView and UIScrollView autolayout? Here's Your Survival Guide!

If you don’t know how to learn uiscrollview ios, then this video is perfect for you!
Have you ever wondered how to use ScrollView? Well you're in luck, because in this ios swift tutorial I will talk about scroll view ios.

Knowing scroll view is a must have in your iOS tool belt. Today you will learn how easy it is to master UIScrollView.
In this uiscrollview tutorial I will talk about uiscrollview autolayout, horizontal scrollview swift, react native scrollview example, react native scrollview not scrolling and uiscrollview in general. I will share everything about auto layout in this ios development tutorial for beginners.

Rebeloper is here to help you learning app development with awesome xcode project. This xcode uiscrollview tutorial is part of an ios app development course. If you want to learn about view controller or you are searching for auto layout tutorial and ios app development tutorial in swift subscribe to my channel,

Let’s dive into this uiscrollview ios tutorial, keep on watching!

Don’t forget to download the resources:

RESOURCES & LINKS MENTIONED IN THIS VIDEO:

***VIDEOS I RECOMMEND***

UIKit Tutorial Swift 2020

DO YOU WANT TO BE MY APPRENTICE?

TOOLS I RECOMMEND:
__________
Say hi on social:

Get in touch:

SUBSCRIBE to weekly tips & tutorials for building iOS apps!

_____

#rebeloper
Рекомендации по теме
Комментарии
Автор

Are you building your UIScrollViews in code or in Storyboards?

rebeloper
Автор

the way you do small mistakes on purpose in code and then fix help fix my bugs. Legend. Quality content (Y)

muhammadasad
Автор

I put stackview with textfield inside uiscrollView and scrolling working good but doesn't work txtfield when i touch 😕 do you know how i can figure out this problem ? UI programmatically

milolajzelichowski
Автор

Is still available package you use in ios 15

abdorizak
Автор

Great video. Was wondering if there is any way to set up the height dynamically?

akashnimare
Автор

Its easy, but has no auto-adaptation for content inside of scrollView (containterView).

СавелийСакун-юж
Автор

Great video, Alex. Can you explain why did you use for scrollView.frame = self.view.bounds? Why bounds of view instead of frame of view?

andreilupu
Автор

Why can't you make the label a subview of scrollview? why do you need containerview as another layer?

satyakoppu
Автор

Perfect. This video really helped me out thank you!

Top_Moorhouse
Автор

When I add subviews to the content view, everything disappears.. Any idea why? O.o

lazy var scrollView: UIScrollView = {
let v = UIScrollView(frame: .zero)
= false
v.backgroundColor = .cyan
v.frame = view.bounds
v.contentSize = contentViewSize
v.autoresizingMask = .flexibleHeight
v.bounces = true
= false
= true
return v
}()

lazy var contentView: UIView = {
let view = UIView(frame: .zero)
= false
view.frame.size = contentViewSize
return view
}()


**I can see my scroll view, everything is nice from the tutorial. ** but then I do...

lazy var workingOnItImageView: UIImageView = {
let imageView = UIImageView()
= false
imageView.image = UIImage(named: "18907")
return imageView
}()


override func viewDidLoad() {
super.viewDidLoad()
view.addSubview(scrollView)


addConstraints()
}


func addConstraints() {
NSLayoutConstraint.activate([
contentView.topAnchor, constant: 12),
contentView.leadingAnchor, constant: 12),
100),
100),
])
}


And I'm left with a blank screen :/

andrewdavies
Автор

Great content, thank you very much.

One suggestion for you: Consider removing the background music from your videos - I listen to my own music while I'm working or learning but it clashes with your stock background music.

multinik
Автор

Hi, I follow this video to build my scrollview, but I set text of label after adding it as subview of scrollview. It went out that nothing showing on my scrollview. Do you know how to fix this problem?

hamster-on-pole
Автор

Great video Alex. I was just wondering when you programmatically set up you view are the constraints automatically assigned for that device and others that it would run on? or just for that device. Since there is no storyboard what would be the default device then? would it be an iPhone X, iPad, etc?

And, if you setup an app which has a lot of various pieces where you would use a stack view when setting up the various item (label, button, seg. control, slider, etc) position. How would you assign the right positions when there are a number of different items in areas around the screen like you would if you were using the storyboard?

I guess over the years i'm used to always working with the storyboards and i'm trying to understand not using it but just coding the way the screen will look instead. Keep up the great work.

damirko
Автор

Try Anchorage for constraints. When I come across it I don't use anything else. Instead of installing it I have it on my desktop and copy to my projects in one step. if it hasn't updated you just change topLayotGuide with view.safeAreaLayoutGuide in two places, I think, and all done.

nebojsapavlovic
Автор

Hey Rebel, Good tutorial i want to tutorial TinyConstrains

vigneshwaran
Автор

I love you and your tutorial videos, you are very helpful to me, thank you.

edorfs
Автор

Please can you please help share link to source code

rotexyjoe
Автор

Thank you so much. It was very easy and helpful

mrashidi
Автор

Hi, I just want to say you all your videos are great and full help for me who are new in the IOS development World.
The quality of your explanations are Top and and the peacing of explanations just perfect.
I hope you will continue to do it because I learn each day lot's of things (unfortunately this is in English and not in French ;-)
But thanks to do all this job free without any payment.
Excellent philosophy, very appreciate (in my last job : Financial controller in a big firm, no information shared was free)
Have a good day

baptisteuccheddu
Автор

Thank you for the amazing video. I gues it was vital for me. 😊

captaintech