The most straightforward CollectionView Tutorial on KZitem.
@EmmanuelOkwara
3 жыл бұрын
I’m glad you like it. 😊
@waheedafolabi6929
3 жыл бұрын
Needed a refresher and you just saved my life. Thanks Emmanuel!
@EmmanuelOkwara
3 жыл бұрын
I’m glad I could help 😊
@liveanimails
3 жыл бұрын
yes, it would be nice to have a video continuation so that the pictures are automatically adjusted to any screen and rotation
@EmmanuelOkwara
3 жыл бұрын
Sure! I’ll consider it as a future video 😊
@girishparate5899
3 жыл бұрын
I loved to see a video about reusable UIVIews like Button, Text, Input text 😇
@michelleweekes1514
2 жыл бұрын
Thank you so much! You saved me as I am creating a final project in school and needed to know how to do this!
@EmmanuelOkwara
2 жыл бұрын
I’m glad it helped 😊
@yusufmd1090
3 жыл бұрын
Your explanation is awesome bro.Thank you. Waiting for more videos.
@EmmanuelOkwara
3 жыл бұрын
Thanks, Yusuf 😊
@raychen4458
2 жыл бұрын
Wanna see a more adaptable collection cell when it comes to different sizes, too !
@EmmanuelOkwara
2 жыл бұрын
Sounds like a great idea. 💡
@buendiaoma
2 жыл бұрын
Thanks buddy!!! I saw manny videos and this one is the best!!! Good job!!!
@EmmanuelOkwara
2 жыл бұрын
Thanks, Omar. 😊
@muzammalabdulghafoor6418
2 жыл бұрын
Simple and great explanation
@Dissident.Dissidentovich
Жыл бұрын
Dear, thanks for programm realization! uzfl for commercial projects!
@林莉-y2y
3 жыл бұрын
Thanks, Emmanuel! You helped me a lot to learn it.
@EmmanuelOkwara
3 жыл бұрын
I’m glad to hear it 😊
@maryamnajafizada5729
Жыл бұрын
Thank you so much. I just had a question, how to make the collection View cell to be clicked on like a button? If anyone else knows the answer to the question, I would very much appreciate it.
@EmmanuelOkwara
Жыл бұрын
We did that in 13:58
@EmreDurmus.
Жыл бұрын
although my code is the same, I get an error Unexpectedly found nil while implicitly unwrapping an Optional value how can I solve it
@EmmanuelOkwara
Жыл бұрын
This means that the value of the property was not set. You may have to confirm from the video to see if you missed an assignment somewhere.
@richardgomez9093
Жыл бұрын
hi thank for the video is there a way to put it horizontaly many thanks
@EmmanuelOkwara
Жыл бұрын
You could either check the Yummie series on my channel or this video kzitem.info/news/bejne/mnelz2FqrIlnfYo
@rax7838
2 жыл бұрын
Your videos are so helpful. I feel like I found a gold mine. only problem is the font is too big so we can't see the all code. for some reason it is very exhausting to me. but still love your work. and how we can make cells responsible instead of giving fixed h and w
@EmmanuelOkwara
2 жыл бұрын
Thanks for the feedback. 😊 I’ll try to work on the font and make it more accessible.
@tahasivrioglu9648
Жыл бұрын
Thanks a lot
@mahmutenescetin9235
3 жыл бұрын
thanks bro, this video fixed my problem
@EmmanuelOkwara
3 жыл бұрын
I’m glad to hear it 😊
@BranGaming20
2 жыл бұрын
hello, i was following all your collectionview tutorial also using kingfisher, but how to play a video in cell? i want a cell fill by image or video randomly, please help me TIA
@EmmanuelOkwara
2 жыл бұрын
Unfortunately I haven’t made a video on AVPlayer yet but you could checkout this tutorial. www.raywenderlich.com/10857372-how-to-play-record-and-merge-videos-in-ios-and-swift
@BranGaming20
2 жыл бұрын
@@EmmanuelOkwara thanks for reply!
@jarmenkell5644
Жыл бұрын
good job
@allin6074
2 жыл бұрын
thank you so much bro u saved me :)
@nguyentienuc8578
2 жыл бұрын
thanks you Emmanuel!
@amilzith5211
3 жыл бұрын
How to add image in the array
@EmmanuelOkwara
3 жыл бұрын
Hello, Amil I added the images to the array using Image Literal. You can bring up the Library by holding down COMMAND + Shift + L or You can type in #imageLiteral(resourceName: "image_name") and the string will be replaced with a thumbnail preview of the actual image.
@aksanazir753
3 жыл бұрын
Superb video. Can u plx tell me how can i go to other page in which detail about the movie is written by simply tapping on the inage or title. Plxxxx
@EmmanuelOkwara
3 жыл бұрын
At the point of this video, we know when a particular cell is tapped. The next thing we need to do is launch the new page that’ll display the information and send the movie at that index to the new view controller. We actually have that done in another series we’re currently working on. You can checkout this video.... kzitem.info/news/bejne/tppq4IGNsKuFqnY
@aksanazir753
2 жыл бұрын
@@EmmanuelOkwara sir can u plx tell me if i click on image i want to perform some action like print("abc") and when i click on the title i want to perform another action like print("123"). how can i do that. plx help
@EmmanuelOkwara
2 жыл бұрын
You can implement this by adding a tap feature recognizer to the image and label, then assign their actions to different methods. You can check this video to see how to add tap to a view. kzitem.info/news/bejne/1nyClp-isoRoemU
@achintbhamra6701
2 жыл бұрын
kindly explain XIB file if you can !!
@alex741321
3 жыл бұрын
Great tutorial, thanks
@EmmanuelOkwara
3 жыл бұрын
It’s my pleasure 😊
@Kalash040
4 ай бұрын
Great!
@shirakuyanai4095
3 жыл бұрын
Hey what if I want to pick one of the images and make it appear on another collection view in other views?
@EmmanuelOkwara
3 жыл бұрын
In 13:35 you see how we can identify tap on a collectionviewcell. We can pass that data into the second view controller and populate your data source with it.
@jestinsaji8246
3 жыл бұрын
how to implement in such a way that when i make switch on from the main viewController the switch action have to be perfomed in another ViewController.
@EmmanuelOkwara
3 жыл бұрын
I believe I did something exactly similar in these videos: Observer: kzitem.info/news/bejne/q5dn3YSrmomqo2k Delegates: kzitem.info/news/bejne/qaqLnK2Qm6Z0dIY
@jestinsaji8246
3 жыл бұрын
@@EmmanuelOkwara i want switch in only one page, when that switch is enabled then the next viewcontrollers color have to change
@JohnLiuFromHK
2 жыл бұрын
Thank you, you explained very well in this video. As you said, I really want to know how to adapt better for different screen size, or customize more. Like setting the margin, padding or sth like that would help :)
@EmmanuelOkwara
2 жыл бұрын
I’ll definitely consider a more in-depth tutorial on this topic. 😊
@guruswriting
3 жыл бұрын
Thanks Emmanuel, can you do a video on passing data from collection view to detail view controller pls (so the tapped image displays)? Thanks
@EmmanuelOkwara
3 жыл бұрын
I actually did that in this video: kzitem.info/news/bejne/tppq4IGNsKuFqnY Also, if you aren’t following the Yummie series, I’d advice you to take a moment and follow it. You’ll learn a whole lot 😊
@guruswriting
3 жыл бұрын
@@EmmanuelOkwara Thanks a lot Emmanuel for taking the time to reply, will checkout out right away, appreciate it!
@vivekbhadane1870
3 жыл бұрын
can you help me for dynamic text. i achieve this layout but when i try to dynamic text but not working.
@EmmanuelOkwara
3 жыл бұрын
Dynamic cell height with a collection view is a little bit tricky. You’d need to calculate the intrinsic height of the labels content and set that as the height of the collection view. It’s easier if you’re using a table view.
@vivekbhadane1870
3 жыл бұрын
@@EmmanuelOkwara sir i have same layout. Tableview view estimate size is good to handle automatically..can you help me with demo.
@vivekbhadane1870
3 жыл бұрын
@@EmmanuelOkwara can you make one video for me.
@YourLeader350
3 жыл бұрын
Thanks so much
@jestinsaji8246
3 жыл бұрын
how 2 create 2 segments such that segment 0 to display table view and segment 1 to display a collection view
@EmmanuelOkwara
3 жыл бұрын
Just like you’ve said, you could have a segmentView, a collectionview and a tableview in your UI. When the value of the segmentView changes, you check the selectedSegmentIndex property and set the isHidden property of both collectionView and tableView accordingly.
@jestinsaji9182
3 жыл бұрын
@@EmmanuelOkwara i have done but getting error can u make one
@EmmanuelOkwara
3 жыл бұрын
I created a sample app here. I hope it helps. github.com/EMacco/ios-tutorials/tree/segment-view
@jestinsaji8246
3 жыл бұрын
@@EmmanuelOkwara thanks a lot
@olenamakhobei1405
2 жыл бұрын
Thank you a lot!
@EmmanuelOkwara
2 жыл бұрын
The pleasure is all mine 😊
@vitorgomes4794
3 жыл бұрын
First of all, thanks for sharing this content Emmanuel. I would like to know if it is possible to explain about 15:11 when you said it is possible to make it more responsible. I am trying same things you did in the video but trying to adapt to different screen sizes
@EmmanuelOkwara
3 жыл бұрын
Thanks, Viktor. In this video, I returned a fixed size for each cell (200x300). When you run the app on smaller/larger screens, the cells will maintain the same dimension. A good way to make it more adaptive is to return a dynamic value for the width and height based on certain conditions. For example, we could set the cell's width to = (view.frame.size.width / 2) - (padding), this way, regardless of the screen size, there will always be 2 cells per row. In the same way, you can also calculate the height of the cell.
@vitorgomes4794
3 жыл бұрын
@@EmmanuelOkwara Thanks Emmanuel I also found almost the same answer as you provided. But how about the height when I am using a single cell? How can I make the height dynamic? I know that I need to calculate elements heights to give as a return of sizeForItemAt, but I don't know how to collect the size outside the extension. To be more clear, this is the result I trying to achieve: imgur.com/a/NggMTJ8
@vitorgomes4794
3 жыл бұрын
I tried this but did not worked, app crashes: On my CollectionViewCell file create the functions heightSum (factTextHeight: CGFloat, categoriesHeight: CGFloat) -> CGFloa and then made it return heightSum = lbFactsText.frame.height + lbCategories.frame.height. On my ViewController, specifically made on cellForIitemAt this: height = cell.heightSum(factTextHeight: cell.lbFactsText.frame.height, categoriesHeight: cell.lbCategories.frame.height) (where height is a global variable on ViewController), then, on CGSize(width: width - 40, height: sizeForItemAt is called before cellForItemAt method right?
@Xunnun
3 жыл бұрын
Thanks For This Video
@easthastings6919
3 жыл бұрын
quality content
@Денис-ж3ф5р
3 жыл бұрын
good stuff
@BestTutorialsLearning
4 жыл бұрын
thanks
@letskrishjourney
2 жыл бұрын
Pls upload mvvm using alamofire
@EmmanuelOkwara
2 жыл бұрын
I would love to but MVVM has no direct influence on your Network layer. You can just implement your network queries using Alamofire in the NetworkService class.
@RanjithKumar-sx2nv
3 жыл бұрын
Bro I'm not Abel to size it
@RanjithKumar-sx2nv
3 жыл бұрын
Can u please reply
@EmmanuelOkwara
3 жыл бұрын
Hello, Ranjith. 😊 Did you follow the steps outlined in 12:44?
@muradanowar2618
4 жыл бұрын
So Far Good
@daxtech-pd3nr
Жыл бұрын
pl help anyone
@dwpalme2670
Жыл бұрын
You make the number of lines 0 and its dynamic.
@dwpalme2670
Жыл бұрын
That's stupid to set the width, you can make that dynamic dude to allow for scrolling.
@sindhurajan9097
3 жыл бұрын
How to use json parsing in collection view
@EmmanuelOkwara
3 жыл бұрын
I’m not sure I understand the question. Please could you explain?
@sindhurajan9097
3 жыл бұрын
@@EmmanuelOkwara nope ..I am clr and I did that 😁 thanks for ur reply..could you please tell me how to link tabbar programatically with the storyboard view controllers
Пікірлер: 89