I should've discovered this technique years ago! I've always used the cell approach and i don't find it efficient to add an extra cell just to show the loading spinner during pagination. Well, it's better late than never! Thanks for this!
Thank you for this...I'm using this for a tableView inside a UICollectionViewCell. When I'm calling the collectionView.reloadItems... the tableView is reloading and going all the way to the top. How do I keep adding at the bottom and not go to top in this case?
First of all, thank you for this video. Second, I think it was a bit faster for my understanding as a beginner. Why did you use DispatchQueue? Do you create all the components programmactly in the same file/class view? Is that correct? I followed all the steps and it worked, but now that I need to add more stuff I don't understand what I just did! hahaha
He just mocked request activity in global queue ( like url session). Once result is ready it should go to screen that is ui staff. All ui task has to be done in main thread that's why author used dispatching.
generally ios UIKit is tied to main thread by default .. so what ever changes we need to make on app live ..we should update UI stuff on main.async .. so we dont face any flickering issues while dealing with ui..
thank you so much for this tutorial! I have a question since I'm implementing this with collection view, there is no footer view like tableFooterView then what do you think I should do? (for the spinner)
How can i make a table view just like settings(for eg from Airplane mode till hotspot and then a gap and then from notification till screen time)? Does it need a cocoapod?
No, you just need to have 2 sections(or more) and at tableView dataSource return nil or empty from titleForHeaderInSection and return from delegate's method heightForHeaderInSection height that would be a height of empty space between sections
Best video so far about pagination
Thanks!
THis is so great!!!!!! Gonna implement it on my app now...
Nice!
Thank you! Cheers from Indonesia
Youre welcome
This channel helps me a lot
Thanks, make sure to sub
Great style and explanation. Thanks a lot!
Thank you!
I should've discovered this technique years ago! I've always used the cell approach and i don't find it efficient to add an extra cell just to show the loading spinner during pagination. Well, it's better late than never! Thanks for this!
Thanks a ton !!
You’re welcome
Great tutorial, thanks. but why didn't you use willDisplay Cell?
Thank you for this informative video! It helped me a lot.
Thanks
Great tutorial thanks!
You’re welcome
it was super! thanks!
Youre welcome!
Great video! Thank you a lot
How about scrolling up ? Do you guys trying to revise scrolling direction of table view / collection view as well?
thank you sir this is very helpful for me
Glad i could help
Thank you so much ❤
You're welcome 😊
Can you please do same implementation for collection view for horizontal and vertical scroll please ? Thank for current sessions. Good explanation 😊
Solid tutorial. Had to a pause a lot. Might help to slow down and provide the entire process you are going through.
thanks!
Great video! How can we add this functionality with Firestore data?
Thanks, simply query firestore at bottom scroll
Thank you for this...I'm using this for a tableView inside a UICollectionViewCell. When I'm calling the collectionView.reloadItems... the tableView is reloading and going all the way to the top. How do I keep adding at the bottom and not go to top in this case?
why tableview? can i use pagination on collectionview? what is the different? explain me please, im junior
Yes, you can use it on any of the two views or others. It just depends on your particular use case
@@iOSAcademy thanks a lot it workss!!
Do you have one for SwiftUI?!
Coming soon
First of all, thank you for this video. Second, I think it was a bit faster for my understanding as a beginner. Why did you use DispatchQueue? Do you create all the components programmactly in the same file/class view? Is that correct?
I followed all the steps and it worked, but now that I need to add more stuff I don't understand what I just did! hahaha
He just mocked request activity in global queue ( like url session). Once result is ready it should go to screen that is ui staff. All ui task has to be done in main thread that's why author used dispatching.
generally ios UIKit is tied to main thread by default .. so what ever changes we need to make on app live ..we should update UI stuff on main.async .. so we dont face any flickering issues while dealing with ui..
Nice
Thanks
Awesome video
Thanks!
thank you so much for this tutorial! I have a question since I'm implementing this with collection view, there is no footer view like tableFooterView then what do you think I should do? (for the spinner)
Check out "viewForSupplementaryElementOfKind" of the UICollectionViewDataSource protocol...
How can i make a table view just like settings(for eg from Airplane mode till hotspot and then a gap and then from notification till screen time)? Does it need a cocoapod?
No, you just need to have 2 sections(or more) and at tableView dataSource return nil or empty from titleForHeaderInSection and return from delegate's method heightForHeaderInSection height that would be a height of empty space between sections
My scrollViewDidScroll delegate method is automatically invoking. Can anybody tell me what is happening?
same to me, at his initial launch
🔥
Thanks
Multiple Sections in UITableView iOS Swift ! - www.iosdeveloperlive.com/2022/02/how-to-use-multiple-sections-in.html
Good reference
Third!
thanks!
First
haha thanks!