Swift: Infinite Scroll & Pagination Tableview (Xcode 11, iOS) - 2020

  Рет қаралды 39,832

iOS Academy

iOS Academy

4 жыл бұрын

In this video we will learn how to set up a tableview to infinite scroll and load more results (pagination) in Swift 5 and Xcode 11. This is a common concept in many popular apps like Facebook, Instagram, and others.
💻 Source Code: / iosacademy
🎥 Subscribe for more: kzfaq.info?su...
😎 Like my teaching style? Check out some of my most popular courses!: courses.iosacademy.io
#swift #pagination #iOSDeveloper
Join the iOS Academy Community: iosacademy.io/
** Get Skillshare free for 2 Months and learn iOS
www.skillshare.com/r/user/afraz
** Manage all your investments from app earnings on Betterment!
bit.ly/3eBwlI9
** Grow your own KZfaq tech channel with TubeBuddy:
www.tubebuddy.com/iosacademy

Пікірлер: 59
@mujtubaamin360
@mujtubaamin360 3 жыл бұрын
Best video so far about pagination
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Thanks!
@pawansaran6584
@pawansaran6584 3 жыл бұрын
Great style and explanation. Thanks a lot!
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Thank you!
@sovrinfo
@sovrinfo 2 жыл бұрын
Great video! Thank you a lot
@nilaydagdemir3633
@nilaydagdemir3633 3 жыл бұрын
Thank you for this informative video! It helped me a lot.
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Thanks
@nestorcalizar6139
@nestorcalizar6139 Жыл бұрын
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!
@JumpStar10
@JumpStar10 4 жыл бұрын
This channel helps me a lot
@iOSAcademy
@iOSAcademy 4 жыл бұрын
Thanks, make sure to sub
@christopherteddymienarto9115
@christopherteddymienarto9115 2 жыл бұрын
Thank you! Cheers from Indonesia
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Youre welcome
@longnguyen-od1qy
@longnguyen-od1qy 2 жыл бұрын
THis is so great!!!!!! Gonna implement it on my app now...
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Nice!
@mertaydayanc1300
@mertaydayanc1300 2 жыл бұрын
Great tutorial thanks!
@iOSAcademy
@iOSAcademy 2 жыл бұрын
You’re welcome
@user-mt1mz9og6t
@user-mt1mz9og6t 3 жыл бұрын
it was super! thanks!
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Youre welcome!
@mohammadimran459
@mohammadimran459 Жыл бұрын
Thanks a ton !!
@iOSAcademy
@iOSAcademy Жыл бұрын
You’re welcome
@dharmikchuahan5630
@dharmikchuahan5630 3 жыл бұрын
thank you sir this is very helpful for me
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Glad i could help
@itananas
@itananas Жыл бұрын
Thank you so much ❤
@iOSAcademy
@iOSAcademy Жыл бұрын
You're welcome 😊
@ANILKUMAR-vv1fz
@ANILKUMAR-vv1fz 3 жыл бұрын
Awesome video
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Thanks!
@MAHOSSAN1
@MAHOSSAN1 Жыл бұрын
Can you please do same implementation for collection view for horizontal and vertical scroll please ? Thank for current sessions. Good explanation 😊
@sahithiammana9210
@sahithiammana9210 3 жыл бұрын
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?
@larrystreehouse1124
@larrystreehouse1124 2 жыл бұрын
How about scrolling up ? Do you guys trying to revise scrolling direction of table view / collection view as well?
@GhasimSina
@GhasimSina Жыл бұрын
Great tutorial, thanks. but why didn't you use willDisplay Cell?
@Marcel-wz2bh
@Marcel-wz2bh 3 жыл бұрын
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)
@arnoldrozon4286
@arnoldrozon4286 3 жыл бұрын
Check out "viewForSupplementaryElementOfKind" of the UICollectionViewDataSource protocol...
@rockyrocky1380
@rockyrocky1380 2 жыл бұрын
Nice
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Thanks
@mohitmourya9997
@mohitmourya9997 3 жыл бұрын
Great video! How can we add this functionality with Firestore data?
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Thanks, simply query firestore at bottom scroll
@MauricioChavesDias
@MauricioChavesDias 3 жыл бұрын
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
@shurale85
@shurale85 2 жыл бұрын
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.
@ProductsHub365
@ProductsHub365 2 жыл бұрын
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..
@hakeemdeggs9117
@hakeemdeggs9117 2 жыл бұрын
🔥
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Thanks
@tjberte
@tjberte 4 жыл бұрын
Solid tutorial. Had to a pause a lot. Might help to slow down and provide the entire process you are going through.
@iOSAcademy
@iOSAcademy 4 жыл бұрын
thanks!
@harshverma7037
@harshverma7037 4 жыл бұрын
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?
@1000FRANKOV
@1000FRANKOV 4 жыл бұрын
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
@pickemparty
@pickemparty 3 жыл бұрын
Do you have one for SwiftUI?!
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Coming soon
@BranGaming20
@BranGaming20 2 жыл бұрын
why tableview? can i use pagination on collectionview? what is the different? explain me please, im junior
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Yes, you can use it on any of the two views or others. It just depends on your particular use case
@BranGaming20
@BranGaming20 2 жыл бұрын
@@iOSAcademy thanks a lot it workss!!
@dev_jeongdaeri
@dev_jeongdaeri 4 жыл бұрын
Third!
@iOSAcademy
@iOSAcademy 4 жыл бұрын
thanks!
@rounaqjahan944
@rounaqjahan944 Жыл бұрын
My scrollViewDidScroll delegate method is automatically invoking. Can anybody tell me what is happening?
@ssaai
@ssaai Жыл бұрын
same to me, at his initial launch
@babidibuu1032
@babidibuu1032 4 жыл бұрын
First
@iOSAcademy
@iOSAcademy 4 жыл бұрын
haha thanks!
@pkemt9179
@pkemt9179 2 жыл бұрын
Multiple Sections in UITableView iOS Swift ! - www.iosdeveloperlive.com/2022/02/how-to-use-multiple-sections-in.html
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Good reference
Diffable Data Source (Swift 5, Xcode 12, TableView) - iOS 2020
16:54
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 34 МЛН
Вечный ДВИГАТЕЛЬ!⚙️ #shorts
00:27
Гараж 54
Рет қаралды 14 МЛН
ОСКАР ИСПОРТИЛ ДЖОНИ ЖИЗНЬ 😢 @lenta_com
01:01
Данные из API в TableView на Swift
14:15
ИЗИ DEV
Рет қаралды 8 М.
Memory Leaks in iOS: Find, Diagnose, & Fix (2022)
12:44
iOS Academy
Рет қаралды 47 М.
Create Side Menu in App (Swift 5, Xcode 14) - 2023 Beginners
35:18
Dynamic height TableView in a Scroll View
13:16
Divyesh Gondaliya
Рет қаралды 17 М.
Swift: Multiple Custom Cells TableView (Swift 5, Xcode 11, iOS)
20:15
SwiftUI 5: What’s New In ScrollView
13:07
Mike Mikina
Рет қаралды 8 М.
Web API Pagination | Offset-based vs Cursor-based
11:03
Ambient Coder
Рет қаралды 43 М.
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 34 МЛН