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.
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.
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
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.
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!
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 ] .
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
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
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.
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
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
@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
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 ?
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?
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.
hey there
how can I contact u ?
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.
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
cellForItemAt is not getting called...Any help?
I’m having the same problem! We’re You able to figure it out ?
same here, you solved it yet?
@@BranGaming20 not really man. I decided to dump collectionview and replace with something else
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.
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!
Thank you so much for explaining the hidden side of technology and teaching me how to create stuff myself.
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 ] .
Love this tutorial. It helped me solve a problem with my cell size not matching up. I fixed the Flow Layout. Thanks Code Pro!
thanks! you help me to understand the basics about Collection View
it is very helpful cause it is basic and you teach very clearly ! thank you for you lesson !
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
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
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.
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.
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
Fantastic tutorial
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
Why is the withReuseIdentifier set to "Cell"?
Where can we get the code?
@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
Awesome! Thanks
sir i want singleton concept
Very well explained and demonstrated. Thankyou
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 ?
What a great lesson. Easy, very well explained, awesome! Thank you!
Awesome! Nice teaching Style...
Great tutorial. Very simple and comprehensive
Sweet Tutorial as always
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?
great and very useful. thanks for this!
Awesome video!!! great job
Great tutorial!
Great content, Bro
Tks
Subscribed and liked!
Nice!
Thank you
great one, i learn a lot from you