Create a UIScrollView using Auto Layout in Storyboard for Xcode 9

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ม.ค. 2025

ความคิดเห็น • 312

  • @Talhaguy
    @Talhaguy 4 ปีที่แล้ว +4

    I come back to this video every few months when I need a scroll view - that's how unintuitive it is to me! Thanks so much for this!!

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว +2

      It's tough. It's all or nothing and if you mix up one step it can leave you super confused.

  • @Arash72af
    @Arash72af 5 ปีที่แล้ว +18

    working with Scrollview in swift and iOS is such a PAIN for real, I do all this in Android with less than a minute! thanks for the video btw, it helped SO MUCH

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว +1

      There are some easier ways, I need to make some new tutorials.

    • @asoks.9134
      @asoks.9134 4 ปีที่แล้ว +1

      This is so true, such a pain, I'm trying to create iOS version of my app and scroll is such a pain

    • @sedraopamp
      @sedraopamp 4 ปีที่แล้ว

      After 30 years, Apple recognizes they did something bad with AutoLayout. So, we have SwiftUI since last year. AutoLayout is a hate-love relationship.

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      @@sedraopamp Auto Layout works, but you have to get the rules and priorities right. If you try to muddle through it, you'll tear out your hair.

    • @myralchista
      @myralchista 3 ปีที่แล้ว

      so true. ios development is terrible compared to android. Can't understand apple fanboys here and their hate towards android...

  • @amirsiddique8694
    @amirsiddique8694 5 ปีที่แล้ว +2

    I've been doing iOS programming for 3+ years now, but still learned some shortcuts and storyboard ticks in this video. Bravo!

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Awesome, I should do a keyboard shortcuts video. Great idea.

  • @kulkarnipanku
    @kulkarnipanku 4 ปีที่แล้ว +1

    This works in 2020 with Xcode 11.4. Thanks Paul 👍

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Awesome!

  • @yt_chill
    @yt_chill 4 ปีที่แล้ว +1

    Thank you so much for this tutorial! Two years later and it’s still helping out. Only tutorial I’ve found that explains effectively how to use scroll view.

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว +1

      Thanks Colby! I need to make a new one. =)

  • @iosdec
    @iosdec 4 ปีที่แล้ว

    Just started getting into Autolayout after 6 years of development.. this just saved my life haha, thanks man

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Awesome. It's tough.

  • @bbalthaz
    @bbalthaz 5 ปีที่แล้ว

    Paul is arguably the best ios/swift/Xcode tutor. Each video is clean, concise, exact, and makes learning enjoyable. Thanks again for another great video Paul

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Thanks Brian! I hope you're doing well.

  • @jonathanstahnke5375
    @jonathanstahnke5375 5 ปีที่แล้ว

    There is a lot of information here. I sat down with a note book and took notes as if I was in a lecture. It was too much to simply follow along in Xcode. But as a rookie this is exactly what I needed!
    I also learned a lot about constraints.
    Thanks for the video

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Great work Jonathan, I'll try and include additional notes in my new videos like this one: th-cam.com/video/8DHNEXcj-w4/w-d-xo.html

  • @itsadamoc
    @itsadamoc 5 ปีที่แล้ว

    This is such a great tutorial. I was up until midnight and was brave enough (thanks to this) to rearrange my entire view controller because I didn't have a UIView inside the ScrollView. I think the most important part (for me) was making sure I had a bottom constraint so UIView knew its height.

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Yes, keep it up!

    • @itsadamoc
      @itsadamoc 4 ปีที่แล้ว +1

      It’s funny you replied to this now Paul, I had to pull it up again this week. Thanks again.

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว +1

      @@itsadamoc =) Have fun with it. I may have an update in the upcoming year.

  • @awkwardalpacaaa
    @awkwardalpacaaa 5 ปีที่แล้ว

    Just started with iOS app development and this video gave me so much clarity on how UIscrollviews worked. Thank you so much!

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Great! There's so much hidden complexity, I hope you're learning a lot.

  • @Yogesh1068
    @Yogesh1068 5 ปีที่แล้ว +1

    This one of the best video for understanding and clearing all the confusion on scrolling issues in UIViewController

  • @fischej
    @fischej 4 ปีที่แล้ว

    Thank you!!! I'm not sure which of the settings you carefully walked through in setting up the ScrollView did it, but by 6:32 I had mine working after hours of poking and guessing. I bet it was the 250 priority setting. My ScrollView wasn't even the same size as the SuperView, but I could still interpolate with your clear instructions. Bless you for doing this!

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Great work Jeff, this is hard work. The feedback loop is slow, and the rules become complex quickly.

  • @WattsnabbAB
    @WattsnabbAB 9 หลายเดือนก่อน +1

    Man you saved me. This was the best video i could find!!!!!

    • @PaulSolt
      @PaulSolt  9 หลายเดือนก่อน

      I’m glad it helped

  • @ahyes5842
    @ahyes5842 4 ปีที่แล้ว

    This actually helped me. I couldn't get it to work from other tutorials. I needed a scroll view that wasn't the entire screen though. Simple fix. I just embedded the scroll view in a view and since I only needed a label in the scroll view, I didn't have a view between the scroll view and the label. Thanks for the video.

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Great work!

  • @bbalthaz
    @bbalthaz 5 ปีที่แล้ว

    Best Xcode/Swift instruction on the web, bar none. Thanks!

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Thanks Brian!

  • @jamesmarson
    @jamesmarson 4 ปีที่แล้ว

    Thank you so much. I had been bashing my head against a wall of scrollview nightmares. Tried everything. This fixed it. Thank you!

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Awesome work James! I need to do a programmatic video one of these days.
      I teach our Lambda School students how to do that.

  • @Pacifica.Obscura
    @Pacifica.Obscura 4 ปีที่แล้ว +1

    I was just in class being taught by you, and now came here to watch this to finish my student project 🤦‍♂️ Paul is everywhere and the best!

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว +1

      Thanks Ezra!

  • @paytonj2620
    @paytonj2620 6 ปีที่แล้ว +6

    This is a great tutorial. I think a great phase2 of this video would be another tutorial that has a scroll view with the "twitter & pinterest" effect a.k.a. infinite scrolling until the data source your pulling from runs out.

    • @PaulSolt
      @PaulSolt  6 ปีที่แล้ว +3

      Thanks Payton! That's a great idea to do a phase 2 project with infinite scrolling. Thanks for the suggestion, I'll add it to my request list. =)

    • @fabiomoggi
      @fabiomoggi 5 ปีที่แล้ว

      Paul Solt Hello Paul. Any chances this phase 2 tutorial has been released?

    • @xXLetsgoagainXx
      @xXLetsgoagainXx 5 ปีที่แล้ว

      @@fabiomoggi These are mainly implemented with tableviews and collection views, it is much easier to handle with that.

  • @bogdanlazar5907
    @bogdanlazar5907 5 ปีที่แล้ว +2

    Thank you so much for this amazing ScrollView tutorial. You are a life savior!

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Good work Bogdan! Hard topic.

  • @OsamaQarem
    @OsamaQarem 6 ปีที่แล้ว

    yep. trying to set up constraints without making a 'content view' was a pain in the ass. glad I found this video

    • @PaulSolt
      @PaulSolt  6 ปีที่แล้ว

      Excellent! It's tricky, this seems to work better with the Content View. =)

  • @MikeGranberry
    @MikeGranberry 3 ปีที่แล้ว

    Good job. You are further along using the right click to access constraints, but I need to lean in that direction.

  • @minsang7452
    @minsang7452 4 ปีที่แล้ว

    THANK YOU SO MUCH! i'm SouthKorean ,and i was searching google, but i can't do that.... but finally you save me!

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Great work!

  • @danfreeman4971
    @danfreeman4971 5 ปีที่แล้ว

    Fantastic video and example project. I would've never thought to change the height priority - videos like this make Swift a usable language!

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Great work Dan, what did you build?

  • @josephlyons3393
    @josephlyons3393 5 ปีที่แล้ว

    Your videos are always super helpful. Thanks Paul!

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Thank you Joseph!

  • @МаксимОрлов-х9ы
    @МаксимОрлов-х9ы 3 ปีที่แล้ว

    Hi Paul, I did all how you show, but when I set constraint, my labels suddenly disappeared, when I remove constr., I can see them. What you think why I get like problem and how can I relosve this?
    P.S.
    6:32 timeline
    P.SS.
    Its happening when I set last constr., - bottom constr., but if I didn't set, I can't get scroll.

    • @PaulSolt
      @PaulSolt  3 ปีที่แล้ว

      Bad constraints can push a view off screen, you may need to add another constraint to bring it back. (Or you haven't fully constrained it)
      Try starting over and see if that helps in another sample Xcode project.

  • @VPSantiago
    @VPSantiago 5 ปีที่แล้ว +1

    Have Xcode 10.2.1, when I right click on any view element I just see the segues, what are you right-clicking (or what options are enabled) to get the constraint context menu?

    • @hananyounes6641
      @hananyounes6641 5 ปีที่แล้ว

      VPSantiago same issue here! Did you figure it out? Thanks

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Right click and drag to another element

  • @randi-mariepedersen6651
    @randi-mariepedersen6651 4 ปีที่แล้ว +1

    Thank you so much! This really helped me a lot! Been using hours trying to figure this out

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Awesome, keep up the hard work!

  • @iamgarystinson
    @iamgarystinson 5 ปีที่แล้ว

    When I do exactly what you have done here and add constraints like you did on 1:40 I get an error message and red lines around the scroll view, that my scroll view has ambiguous scrollable content hight and width. Can you help me out on that?

    • @iamgarystinson
      @iamgarystinson 5 ปีที่แล้ว

      Oh okay, I just followed your steps ahead and the red lines and error messages disappeared :-) Thank you so much for that great video!!

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Sometimes I restart and it works ... little mistakes can break it quickly. It's very error prone.

  • @gabilakbarov8423
    @gabilakbarov8423 4 ปีที่แล้ว

    Thank you so very much, Paul. Your video really helped me to understand scroll view

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Woohoo! That's great Gabil!

  • @PauloSilva252
    @PauloSilva252 4 ปีที่แล้ว

    Great tutorial, very very helpful. It's not easy to find proper information on this topic. Thanks!

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Thanks Paulo!

  • @TheSpiralnotizblock
    @TheSpiralnotizblock 4 ปีที่แล้ว

    6:10 if I do the vertical spacing and starting the app, the labels disappear and it is not scrollable :/

    • @TheSpiralnotizblock
      @TheSpiralnotizblock 4 ปีที่แล้ว

      ok its working now. I forgot the priority level 🤦🏽‍♂️

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว +1

      @@TheSpiralnotizblock Great fix! It's tough.

  • @Talhaguy
    @Talhaguy 6 ปีที่แล้ว +1

    Thanks so much! I was really struggling to get my scroll view set up. Your video and github repo saved me!

    • @PaulSolt
      @PaulSolt  6 ปีที่แล้ว

      Excellent! What are you making?

    • @Talhaguy
      @Talhaguy 6 ปีที่แล้ว

      Paul Solt I was actually just messing about. But I was using the NASA picture of the day API to create a view. Thanks again!

    • @PaulSolt
      @PaulSolt  6 ปีที่แล้ว

      Great idea! I haven't used their API, but that sounds super fun to play with!
      I might have to make a demo app using it. Thanks, Muhammad!

  • @_animesh
    @_animesh 4 ปีที่แล้ว

    Awesome video. It solved a lot of my problems. Thank you so much.

  • @martinheinsdorf
    @martinheinsdorf 6 ปีที่แล้ว

    It's a good tutorial. The content container was new to me. I see that programming AutoLayout takes a lot of trial and error effort even for an expert like you. Now I don't feel so bad taking so long to learn it.

    • @PaulSolt
      @PaulSolt  6 ปีที่แล้ว

      Yes! It's a big learning experience, and more complex UI's introduce new challenges that you have to use logic to think through. And sometimes the tools behave strangely ... so it's not always your fault.

  • @jlecampana
    @jlecampana 5 ปีที่แล้ว

    Fantastic Video! Lowering the Priority of the Width/Height of the Content View is just what I needed to know, thanks man!

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      It's tricky, I should do more videos on this topic.

  • @andrewolkhovsky7811
    @andrewolkhovsky7811 5 ปีที่แล้ว +1

    Thanks so much for this tutorial. I have finally understood how to design such long content areas. Great video!

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Awesome work Andrew!

  • @varunnarayanswamy8084
    @varunnarayanswamy8084 5 ปีที่แล้ว

    Awesome video. Even with newer versions of Xcode it still makes sense and is paced well

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Great! Sometimes things change, we'll see with Xcode 12

  • @TheMichanatorLP
    @TheMichanatorLP 4 ปีที่แล้ว

    thank you so much! you saved me a psychiatrist. The scrollview drove me crazy

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Good work! It's tricky to work with Scroll Views.

  • @domenicocolandrea
    @domenicocolandrea 5 ปีที่แล้ว +2

    Thank you for this! I cant thank you enough! Keep putting out more videos!

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Thanks Domenico, Auto Layout + Scroll Views are hard. I want to do some programmatic Scroll View videos.

  • @maheshm1954
    @maheshm1954 6 ปีที่แล้ว

    Really nice tutorial Paul Solt ....it is very helpful for me .Thanks a lot !

    • @PaulSolt
      @PaulSolt  6 ปีที่แล้ว

      Awesome! =) What are you using the ScrollView for?

  • @jamesphuket
    @jamesphuket 6 ปีที่แล้ว

    Great, thanks for the clear and precise introduction to scroll views!

    • @PaulSolt
      @PaulSolt  6 ปีที่แล้ว

      You're welcome! Enjoy it!

  • @DanKardell
    @DanKardell 5 ปีที่แล้ว

    Have you updated this for Xcode 11.3 . This does not appear to work any longer. Thanks

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Dan, I'll need to make a new tutorial for Xcode 12, thanks! This is very tricky.

  • @김민식-y5e
    @김민식-y5e 4 ปีที่แล้ว

    Thank you. Is there any way to do Relation with Less Than or Equal after giving scrollView Height Constraint as a large value?

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      I don't know off the top of my head, it gets pretty tricky when you do that. Scroll views like to squish content down to the intrinsic content sizes, unless you give them a fixed size.

  • @MarcosVicente0
    @MarcosVicente0 5 ปีที่แล้ว

    I tried to delete the labels constraints (top, center and bottom) just to see how would it be and the page stopped scrolling. So I had to add them back in order to get the page scrolling again. Is it possible to keep it scrolling without these labels and their constraints?

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      I don't know, rules are tricky with the scrollview. It does some magic and expects them a certain way. Programmatic may be easier: th-cam.com/video/GssEIHPPnkE/w-d-xo.html

  • @sebotagesa
    @sebotagesa 5 ปีที่แล้ว

    This is the only great tutorial on the net it seems for the UIScrollView. When can we expect a refreshed video using the Xcode 11 Scroll View element?

    • @PaulSolt
      @PaulSolt  5 ปีที่แล้ว +1

      In the near future ... I don't have an ETA yet. Working on getting back into my writing habit, videos will follow.

  • @MaximGolovlev
    @MaximGolovlev 6 ปีที่แล้ว

    finally some good example without mistical invisible spacers

  • @tomnotdavid
    @tomnotdavid 5 ปีที่แล้ว

    How do you load the page where it would start at the bottom of the scrolled page? Thanks!

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Change your contentOffset position

  • @forrestanderson2885
    @forrestanderson2885 5 ปีที่แล้ว

    Hey Paul. Nice tutorial. The next step would be how to make the size dynamic so that the Content View expands as the content expands.

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Great idea for a future tutorial on Auto Layout for accessibility or dynamic content.

  • @devranates889
    @devranates889 6 ปีที่แล้ว

    İf you hide button at the bottom at run time how would you remove space at the below of textfield and make this page non scrollable ?

    • @PaulSolt
      @PaulSolt  6 ปีที่แล้ว

      If it's in a StackView, you can hide it, and the space should adjust. Then if the height of the content is below the height of the screen, you can disable scrolling on the scrollview.

  • @skepticalCoder
    @skepticalCoder 5 ปีที่แล้ว

    Super helpful vid. Thanks. I am finally writing this all down.

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Great! It's difficult, I ran into issues doing it programmatically: th-cam.com/video/GssEIHPPnkE/w-d-xo.html

  • @rshrewd8809
    @rshrewd8809 4 ปีที่แล้ว

    Clear and up to the point. Thanks buddy

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      You bet!

  • @plusgforce
    @plusgforce 5 ปีที่แล้ว

    I tried adding a background image but every time I tried to do this I get errors. What do I need to do to make it work?

    • @PaulSolt
      @PaulSolt  5 ปีที่แล้ว

      Set a max height for the image?

  • @rafaelplinio6527
    @rafaelplinio6527 5 ปีที่แล้ว

    How do I use this same method for a horizontal scroll view? I have been trying to apply the same logic but horizontally and I can't make it work.

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      That's tricky if you don't have the text width constrained. Make sure you specify how wide a text area or image can be.

  • @Sophie98
    @Sophie98 5 ปีที่แล้ว

    One of my bottom constraints isn't working correctly and now my label is very large in comparison to the rest of the items on my app. Any advice?

    • @PaulSolt
      @PaulSolt  5 ปีที่แล้ว +1

      You need to increase the content hugging priority so it doesn't stretch.

    • @Sophie98
      @Sophie98 5 ปีที่แล้ว

      Paul Solt thank you

  • @roadsailor13
    @roadsailor13 4 ปีที่แล้ว

    very informative video on scrollview. Can you make a video on how to handle scrollview in portrait mode and landscape mode

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Great idea, thanks Sai! What do you need to do with portrait or landscape? I don't get the issue.
      Can you explain what you are trying to do?
      My recommendation is not to support both, most apps pick one, except when they display video content, etc.

  • @peterdow3257
    @peterdow3257 5 ปีที่แล้ว

    I think your tutorial is not working with Xcode 11. Can you please fix it for universal app (iPhone, iPad and Mac)

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      I'll have a to refilm a new version with Xcode 12 ... I did a quick time lapse showing how to do this programmatically, but need to actually break it down step by step. th-cam.com/video/GssEIHPPnkE/w-d-xo.html

  • @kasun0071
    @kasun0071 6 ปีที่แล้ว

    Great Tutorial Thanx.
    Can you tell me why you delete the Height Beam

    • @PaulSolt
      @PaulSolt  หลายเดือนก่อน

      We want to self size

  • @TerranceBaptiste1977
    @TerranceBaptiste1977 4 ปีที่แล้ว

    This tutorial was very helpful for me. Thank you very much!

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      You're welcome Terrance!

  • @desmond4924
    @desmond4924 6 ปีที่แล้ว

    Finally solve the problem , thanks for your video . It's good for beginners!!!!!

    • @PaulSolt
      @PaulSolt  6 ปีที่แล้ว

      Awesome!

  • @iOSTechie
    @iOSTechie 5 ปีที่แล้ว

    It works great. Thanks Paul.
    One question - why you stopped creating videos?

    • @PaulSolt
      @PaulSolt  5 ปีที่แล้ว

      I haven't had time, as I've been working full-time teaching iOS at Lambda School.

    • @PaulSolt
      @PaulSolt  5 ปีที่แล้ว +1

      Hopefully, I'll be able to start making some new content in the near future.

    • @iOSTechie
      @iOSTechie 5 ปีที่แล้ว

      @@PaulSolt can you share the syllabus of your class? Like what all topics you cover and duration

    • @PaulSolt
      @PaulSolt  5 ปีที่แล้ว +1

      @@iOSTechie lambdaschool.com/courses/ios-development

  • @mohammedibrahim9223
    @mohammedibrahim9223 4 ปีที่แล้ว

    for vertical spacing ?

    • @PaulSolt
      @PaulSolt  หลายเดือนก่อน

      add constraints to space

  • @alpermaraz4079
    @alpermaraz4079 6 ปีที่แล้ว

    How does your app look when u run it on a iPhone 8 plus ?
    I have the Problem when I use the same scroll view on devices with different widths it doesn't fit anymore

    • @PaulSolt
      @PaulSolt  6 ปีที่แล้ว

      It works great!
      You need to make sure the horizontal layout is explained properly, and not hard coded to specific sizes. Use relative layouts like I describe in my 30 Auto Layout Best Practices guide: blog.supereasyapps.com/30-auto-layout-best-practices/

  • @ivanmatala
    @ivanmatala 6 ปีที่แล้ว

    What is the importance of setting the priority height constraint to 250?

    • @PaulSolt
      @PaulSolt  6 ปีที่แล้ว

      Makes it low priority. Understanding priorities is something that I plan to create a separate video/blog/book on: pages.convertkit.com/e119bf9a85/858c1c1a46

  • @hurlatunde
    @hurlatunde 5 ปีที่แล้ว

    Thanks, men, your tutorial helped me a lot and saved me a lot of time. thanks again

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Keep it up!

  • @SMIKEex
    @SMIKEex 5 ปีที่แล้ว

    thank you so much, worked with Xcode 10.3 and swift 5.

  • @mobilestar6575
    @mobilestar6575 5 ปีที่แล้ว

    As always this is great tutorial, I like your videos very much. Thank you.!

  • @thesackofnuts5275
    @thesackofnuts5275 6 ปีที่แล้ว

    Hey thanks for this super informative video! I have a question about the auto layout tho. I am working on an app which requires scroll view in a tab bar controller which also has a navigation bar. How should I go about setting up the auto layout so that I am able to display things and scroll smoothly. Really lost as to how I should approach this, any help would be greatly appreciated!
    Cheers!

    • @PaulSolt
      @PaulSolt  6 ปีที่แล้ว

      Same way, you just need to contain the scroll view controller within the tab bar.

  • @sauafaalelelei8955
    @sauafaalelelei8955 5 ปีที่แล้ว

    It's scrolling but my buttons stay on screen, please help

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      You probably want to put the button on top of the scroll view with special constraints that keep it visible all the time, don't put it inside the content.

  • @super7ace
    @super7ace 5 ปีที่แล้ว

    it says that need constrains for X Position

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Make sure you follow step by step, if it's not properly setup it will not be happy.

  • @samdechario5561
    @samdechario5561 5 ปีที่แล้ว +1

    Hey thanks so much for that, I was going nuts trying to lay out stuff in a scroll view and that unlocked the mystery ;-)

    • @PaulSolt
      @PaulSolt  5 ปีที่แล้ว

      Awesome!

  • @NeverwinterMoon
    @NeverwinterMoon 5 ปีที่แล้ว

    It would be interesting to see the same done with UIStackView instead of settings explicit constraints to each view inside the content view...

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Good idea

  • @niteshkumar2133
    @niteshkumar2133 5 ปีที่แล้ว

    Why you are setting low priority?

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Sometimes you need to break a "tie" by changing priority

  • @shashivendrasinghsengar792
    @shashivendrasinghsengar792 3 ปีที่แล้ว

    thanks a lot sir its very helpful and very simple to undrsatnd

  • @mohammadyunus9020
    @mohammadyunus9020 6 ปีที่แล้ว

    how do we know which portion of scroll view is on the screen?

    • @PaulSolt
      @PaulSolt  6 ปีที่แล้ว

      It always starts at the top, unless you programmatically scroll.

  • @EmotionalScenes
    @EmotionalScenes 6 ปีที่แล้ว

    Hey Can you please teach us how to make the scroll view expand with the UITextfield as it expands? i made the uitextfield expand itself until the bottom of the scroll view but the scroll view is fixed and it could't expand. thanks ;))

    • @PaulSolt
      @PaulSolt  6 ปีที่แล้ว

      You should use a text area instead of a UITextField. Set a maximum height for the view. Don't make it expand. Or if you do, just control the text area's height constraint constant programmatically.

  • @fatihbicer7353
    @fatihbicer7353 4 ปีที่แล้ว

    Thanks bro! I was going nuts trying

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Glad I could help

  • @selvarajant
    @selvarajant 5 ปีที่แล้ว

    Thanks for this video. It is pretty useful for my current situation..

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Excellent! Keep it up

  • @AbhishekSansanwal
    @AbhishekSansanwal 6 ปีที่แล้ว

    Only if I could I would pin this video's url on the TH-cam homepage so that people don't waste time searching for scroll views when they can access the gem directly! Amazing shit man 🔥

    • @PaulSolt
      @PaulSolt  6 ปีที่แล้ว

      Thanks! Just subscribe for new videos. More Auto Layout topics are coming after I finish my new book: pages.convertkit.com/e119bf9a85/858c1c1a46

  • @Местодлядуши
    @Местодлядуши 4 ปีที่แล้ว

    Thank you! So useful tutorial!

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      You're very welcome!

  • @rajneeshkumar8828
    @rajneeshkumar8828 6 ปีที่แล้ว

    This video is really good . But i have a question , if we have to add some ui dynamically in our content view . So scroll view adjust automatically scroll content or not .

    • @PaulSolt
      @PaulSolt  6 ปีที่แล้ว

      Use a Stackview to contain a group of dynamic content.

  • @jamesbush7717
    @jamesbush7717 6 ปีที่แล้ว

    The reason why you couldn’t rename the view at around 2:45 is likely due to whatever software you’ve installed to highlight your screen clicks; regardless, selecting the view (indicated by blue highlight) and then pressing Enter (or Return) would have allowed to you to rename it.

    • @PaulSolt
      @PaulSolt  6 ปีที่แล้ว

      I don't have any mouse highlights, and I'm not sure what happened here. Probably restarting Xcode would fix this glitch.
      Enter definitely works. I didn't remember to do that when I was creating the video. Thanks for the reminder!

  • @niteshkumar2133
    @niteshkumar2133 5 ปีที่แล้ว

    why its not scrolling? Doing the same step.

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Very error prone, start over and try again. Did you get it?

  • @mohang99
    @mohang99 5 ปีที่แล้ว

    Really helpful video. It solved my problem. thank you.

  • @timmitchell5973
    @timmitchell5973 6 ปีที่แล้ว +1

    Good tutorial. Paul, you indicated that this same thing could be done programmatically. Any suggestions of a reference on how to do this? I have an application where I need to add the constraints programmatically instead of in the storyboard.

    • @PaulSolt
      @PaulSolt  6 ปีที่แล้ว

      That's a good idea for a followup video. Thanks Tim!
      You'll have to programmatically add the layout constraints using the Anchors API, which I cover in my Learn Auto Layout Fast course. It's not open yet, but I'll be opening enrollment soon: supereasyapps.com/autolayout/

  • @PhontaineJudd
    @PhontaineJudd 5 ปีที่แล้ว

    VERY VERY helpful. Thanks!!!

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Thanks, keep it up Phontaine.

  • @brendanmilton5025
    @brendanmilton5025 5 ปีที่แล้ว

    Hi great tutorial! I get an error immediately after adding all scroll view constraints suggesting scroll view height and width are ambiguous? It doesn't offer an xcode fix. Any ideas?

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Make sure you follow it exactly, and Xcode may have changed ... so it's pretty difficult. Did you figure it out?

  • @LaithRafidi
    @LaithRafidi 6 ปีที่แล้ว

    Hey Thanks for this! is there any way to make the scroll view a loop? so it goes back to the top or keeps going down?

    • @PaulSolt
      @PaulSolt  6 ปีที่แล้ว

      Awesome! That's not a standard behavior on iOS, so I would not recommend. Customers on iOS are used to the rubberband snap effect.
      With that said, you can adjust the scroll position programmatically, but it make "pop" without hand tweaking it a ton.

  • @n3bunul98
    @n3bunul98 5 ปีที่แล้ว

    This tutorial helped me a lot!Thanks!!!!

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      You're welcome!

  • @zainhaider6628
    @zainhaider6628 6 ปีที่แล้ว +1

    Thanks, you saved my life. i was missing bottom constraint

    • @PaulSolt
      @PaulSolt  6 ปีที่แล้ว

      That's always tricky. =)

  • @hafeezshaik4935
    @hafeezshaik4935 6 ปีที่แล้ว

    does this work in landscape mode ?????

    • @PaulSolt
      @PaulSolt  6 ปีที่แล้ว

      Should still work, but you may or may not need to adjust offsets to keep the same content on screen, especially if you rearrange anything.

  • @AJCisd
    @AJCisd 6 ปีที่แล้ว

    Thanks for the tutorial!! Just what I was looking for!! You just adquiere a new sub!

    • @PaulSolt
      @PaulSolt  6 ปีที่แล้ว

      Awesome =)

  • @hectorsvill
    @hectorsvill 5 ปีที่แล้ว

    thanks, Paul! This was a lot of help!

    • @PaulSolt
      @PaulSolt  5 ปีที่แล้ว +1

      awesome! =)

  • @johnathanleung9233
    @johnathanleung9233 6 ปีที่แล้ว

    Thank you Paul. You've made my day.

    • @PaulSolt
      @PaulSolt  6 ปีที่แล้ว

      Awesome! Thanks for sharing Johnathan! How are you using Auto Layout in your app?

  • @Blarmoshlashkin
    @Blarmoshlashkin 5 ปีที่แล้ว

    Solid video. Good work

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Thanks !

  • @jiajiejames5580
    @jiajiejames5580 6 ปีที่แล้ว

    Thanks for your tutorial. Very useful.

    • @PaulSolt
      @PaulSolt  6 ปีที่แล้ว

      Awesome! What are you making?

  • @jonKempEsq
    @jonKempEsq 4 ปีที่แล้ว

    huge help, thank Paul

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Great work Jon! This is tough.

  • @jonessmith8670
    @jonessmith8670 6 ปีที่แล้ว

    Hello Mr. Solt,
    The video is good and helpful! Thank you!

    • @PaulSolt
      @PaulSolt  6 ปีที่แล้ว

      Awesome, thanks for letting me know. What are you making?

    • @jonessmith8670
      @jonessmith8670 6 ปีที่แล้ว

      Hello Mr. Solt, I am making a directroy like app. Just an app showing a lot of names of companys.

    • @PaulSolt
      @PaulSolt  6 ปีที่แล้ว

      Awesome, that sounds fun, keep it up, Jones!

    • @jonessmith8670
      @jonessmith8670 6 ปีที่แล้ว

      Thank you very much Mr. Slot!

  • @multitudes389
    @multitudes389 5 ปีที่แล้ว

    many thanks! you helped today!

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Great work Laurent! Enjoy coding

  • @DilpreetBhatiaMusic
    @DilpreetBhatiaMusic 5 ปีที่แล้ว

    Thanks Man!!! This was really helpful!!

  • @rudra003
    @rudra003 6 ปีที่แล้ว

    Awesome, very nice explanation!

    • @PaulSolt
      @PaulSolt  4 ปีที่แล้ว

      Thanks Prem!