UICollectionView Tutorial

Поделиться
HTML-код
  • Опубликовано: 6 сен 2024

Комментарии • 43

  • @CodePro
    @CodePro  4 года назад +5

    While there are many table and list UI layouts, grid layouts are also very heavily used in mobile user interfaces. Learn how to leverage the UICollectionViewController to quickly setup a grid user interface.

    • @GLAMBYROXY
      @GLAMBYROXY 4 года назад

      hey there
      how can I contact u ?

  • @AkamiChannel
    @AkamiChannel 4 года назад +3

    I'm sorry to be rude, but what is it with so many youtube tutorials for iOS dev about not putting code on github? I feel like such an idiot sitting here typing things out. And now I have an error and it is difficult to see the cause. Did I make some typo? I check over and over and over. Is there some small difference in the version of swift since the video was published? It's very frustrating.

  • @smoothumut
    @smoothumut 4 года назад +1

    I must say, I have watched many tutorials but yours is the only one that answers all the questions in my mind. it was really good approach to clean all the codes then start to create them back with telling the idea behind them with what it is really doing. I finally made my code works.thanks thanks thanks a lot

  • @SinanNoureddine
    @SinanNoureddine 4 года назад +4

    cellForItemAt is not getting called...Any help?

    • @JavierMelodico
      @JavierMelodico 3 года назад

      I’m having the same problem! We’re You able to figure it out ?

    • @BranGaming20
      @BranGaming20 3 года назад

      same here, you solved it yet?

    • @SinanNoureddine
      @SinanNoureddine 3 года назад

      @@BranGaming20 not really man. I decided to dump collectionview and replace with something else

  • @tonynaranjo2182
    @tonynaranjo2182 3 года назад

    If you are using a storyboard like in this case, it does register the cell for you the way you don't have to do it in the viewDidLoad(), but also, if you do it, you'll get an error at trying to recognize the cells, I noticed that when trying to cast the cell to my custom cell class... It took me a hard couple of hours for realizing the reason. Thank you, you didn't say it but you gave me the hint I needed.

  • @nikakalandia2447
    @nikakalandia2447 2 года назад

    OH GOD FINALLY I DID IT! Dude thank's a lot for this tutorial. I am beginner in Swift and english is not a my main language but I understand full of your video. Thanks a lot again!

  • @hercules6380
    @hercules6380 4 года назад +1

    Thank you so much for explaining the hidden side of technology and teaching me how to create stuff myself.

  • @abinkrishnao967
    @abinkrishnao967 3 года назад +2

    Can You please tell us that , How to give spacing from the leading part of the collection view cell .[ i want to give space at the left side of the first collection view cell ] .

  • @DarrickBaxter
    @DarrickBaxter 3 года назад

    Love this tutorial. It helped me solve a problem with my cell size not matching up. I fixed the Flow Layout. Thanks Code Pro!

  • @voronovski
    @voronovski Год назад

    thanks! you help me to understand the basics about Collection View

  • @litao8092
    @litao8092 4 года назад +1

    it is very helpful cause it is basic and you teach very clearly ! thank you for you lesson !

  • @preetikamboj1831
    @preetikamboj1831 4 года назад +2

    Hello Sir,
    Your video is helpful for me but i'm using same syntax but getting error for that (cityCell.configure(with: "dataSource[indexPath.row]")) for this error is ["Value of type 'CollectionViewCell' has no member 'configure'"] please can me to get out from this error.
    Thanks
    Preet

    • @aungthiha1104
      @aungthiha1104 4 года назад +1

      The error that you're getting is because you do not have a custom class that implements the "configure" method inside the class .
      In this case, what you need to do is go to your custom collection view class and implements the method.
      The code should look like this.
      class FooClass : UICollectionViewCell {
      // your initializer here
      func configure (with data : ) -> {
      // your code
      // return
      }
      }
      as you can see, now the custom class has a member method called configure.
      Thanks and peace

  • @AkamiChannel
    @AkamiChannel 4 года назад +1

    It would be great if you would put it on github, so we don't have to look at the video and type it in. Even just putting it on pastebin or heck, copying it in to the description or a comment would be good.

    • @AkamiChannel
      @AkamiChannel 4 года назад

      I know the "learn the hard way ethos". I've been programming for 8 years and I'm over that stuff. In the first year or two that can be good.

  • @r2d2925
    @r2d2925 3 года назад

    Thank you for your tutorial, easy to understand and clarify. But, the last part with "didSelect", was not the best approach for fetching string data.
    IMHO

  • @software-sage
    @software-sage 4 года назад +1

    Fantastic tutorial

  • @danielgoldberg7473
    @danielgoldberg7473 2 года назад

    Please help this situation has happend in every tutorial i follow! in CollectionViewController I cant every call collectionViewCell, it says its not in scope. I dont know what to do

  • @johnsonhan2000
    @johnsonhan2000 2 года назад

    Why is the withReuseIdentifier set to "Cell"?

  • @AkamiChannel
    @AkamiChannel 3 года назад +1

    Where can we get the code?

  • @Jock3R87
    @Jock3R87 4 года назад +1

    @code pro: Your tutorials ares simply great. Can I urge you to make PROTOCOL ORIENTED PROGRAMMING tutorial in actual iOS application. So many examples are present but they are basics like Hello World. Actual xcode project can make this important topic clear. Can you please? It will be great help Sir

  • @tone-qd1ng
    @tone-qd1ng 3 года назад +1

    Awesome! Thanks

  • @ashokkumarmuthyam2986
    @ashokkumarmuthyam2986 4 года назад +1

    sir i want singleton concept

  • @neilmorley5422
    @neilmorley5422 3 года назад

    Very well explained and demonstrated. Thankyou

  • @unikmandakh
    @unikmandakh 3 года назад

    Could you please re-iiterate or create separate video on CollectionView on why it needs 3 functions ? Is there anything else to connecting the class? what are the other files are there for in collectionview main story board ? why r u using sub class ? would the using same class create difficulties ? Tutorial is plane and simple which is great i can easily follow but i can't use it to make something of my own coz i didn't understand a thing ... i just followed it.... what is dataSource protocol ? what does the dequeueReusableCell function does ? If i wanna for example make changes to the cell press how do i do that ? if cell is pressed i want to for example make a cell of different color ?

  • @josemv3
    @josemv3 2 года назад

    What a great lesson. Easy, very well explained, awesome! Thank you!

  • @jonyive6273
    @jonyive6273 3 года назад

    Awesome! Nice teaching Style...

  • @andrewclark7113
    @andrewclark7113 3 года назад

    Great tutorial. Very simple and comprehensive

  • @sachinsharma86
    @sachinsharma86 4 года назад +1

    Sweet Tutorial as always

  • @caligis
    @caligis 3 года назад

    I tried a few tutorials but kept getting errors or too much unnecessary code. Thanks for a great video! Just one question: how would you add images along with the text?

  • @dreieckkreisquadrat5719
    @dreieckkreisquadrat5719 4 года назад +1

    great and very useful. thanks for this!

  • @germancastaned1587
    @germancastaned1587 3 года назад

    Awesome video!!! great job

  • @mychongck
    @mychongck 4 года назад +1

    Great tutorial!

  • @caiokao3080
    @caiokao3080 3 года назад

    Great content, Bro
    Tks
    Subscribed and liked!

  • @rgenericson5361
    @rgenericson5361 4 года назад +1

    Nice!

  • @yuvrajsharma2204
    @yuvrajsharma2204 3 года назад

    Thank you

  • @renaldysabdo5073
    @renaldysabdo5073 3 года назад

    great one, i learn a lot from you