Тёмный

iOS Swift Tutorial: Paging through multiple ViewControllers with UIPageViewController 05/24 🎄 

Brian Advent
Подписаться 75 тыс.
Просмотров 44 тыс.
50% 1

In this tutorial you are going to learn about the basics of UIPageViewController that let's you scroll or page through a set of UIViewControllers. This is very useful e.g. if you want to build a cool onboarding screen.
➡️ Web: www.brianadvent...
➡️ Like on Facebook: / brian-advent-180618941...
💼 PROJECT FILES 💼
tinyurl.com/j6h...
Working with XIB Files: • iOS Swift Tutorial: Br...
✉️ COMMENTS ✉️
If you have questions about the video or Cocoa programming, please comment below.

Опубликовано:

 

13 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 70   
@user-dw6cf1ol8r
@user-dw6cf1ol8r Год назад
My Friend! Thank you so much! Your tutorials always save my life!
@robertcleary3370
@robertcleary3370 3 года назад
man! when I saw that the video was only 12 min long, I was hesitant that it would be enough. But I was so wrong. This was easy to understand and incredibly clean code. Thanks, Brian!
@florianhemme
@florianhemme 5 лет назад
This is probably the tenth or so video tutorial or online guide I have tried to figure out scrollview - thank you, works like a charm!
@elivazquez7582
@elivazquez7582 7 лет назад
Thanks for your tutorial! I'm new to iOS development, I do like the fact that you go fast and to the point, we can always pause the video or re-watch it, keep it up!
@LarsVision
@LarsVision 5 лет назад
Great! I think this is the best and simplest implementation for PageVC, anywhere. This tutorial is excellent on all notes, i.e. clarity, accuracy, audio/visual, brevity...etc. Wow! with this, now I think I can grasp the concepts to build, and customize my own PageVC. The Apple template seems to verbose (for a noob like myself). Thanks Brian, for the training wheels.
@ianfagundes84
@ianfagundes84 5 лет назад
Brian I'm from Brazil, and following you cause for me you are the unique person on you tube who explain the things step by step as the tutorial must to be. It's amazing thank you so much I`m beginner in iOS swift and it was exactly what I needed Huge hug from Brazil ;)
@adviceforidevice4536
@adviceforidevice4536 5 лет назад
Mate that was completely amazing, the only tutorial i understood about paging. Thanks!
@mehdichennoufi1061
@mehdichennoufi1061 7 лет назад
Your videos are quick, very clear, simple and with good coding practices inside, what else ? Big up 👍🏻 Brian
@BrianAdvent
@BrianAdvent 7 лет назад
Thank you so much Mehdi!
@spongebobber1000
@spongebobber1000 7 лет назад
I love all your tutorials. They are so easy to follow and good to understand. Can't wait for all 24 advent videos. ;)
@BrianAdvent
@BrianAdvent 7 лет назад
+spongebobber1000 thanks a lot man!
@osamaghazal2480
@osamaghazal2480 7 лет назад
Thank you very much for the tutorial. I followed you step by step ... but when I tried running the simulator I got these errors. One problem caused the build to fail. when I type the guard line in both the Before and After parts, it goes like this guard let vcIndex = viewControllerlist.indexOf(element: UIViewController) else {return nil} the error message says that the "element:UIViewController" is a place holder, so what should I change it to ?
@jeremyseibert7653
@jeremyseibert7653 7 лет назад
You are seriously an amazing teacher! I have implemented your onboarding tutorial, and I am definitely going to use this! Thank you so much!! Great content!
@allanrosa
@allanrosa 4 года назад
Awesome content, quick, simple, well explained, good audio.
@anythingtechno
@anythingtechno 7 лет назад
Christmas has come early this year..thanks you so much Brian!
@cgontijo
@cgontijo 6 лет назад
Thank you Brian, your tutorial videos are always very helpful.
@mrvfino
@mrvfino 6 лет назад
Thanks! Very simple reference and straight to the point.
@trumpmyass
@trumpmyass 6 лет назад
Brian thank you so much for this explanatory tutorial! This really helps me to understand the code! 😇
@namename-pp8eq
@namename-pp8eq 2 года назад
Thank you! Great tutorial, simple and to the point. One question tho, what is the point of "guard viewControllerList.count > previousIndex else {return nil}"? by definition previousIndex is always smaller than viewControllerList.count. the smallest viewControllerList.count can be is 1 and then previousIndex would be -1. So we would have already returned nil because of "guard previousIndex >= 0 else {return nil}"
@GREATVOVA
@GREATVOVA 7 лет назад
Thanks alot. I'm developing programs for iOS using Xamarin framework and your video was very useful to make UIPageViewController to work.
@PowaPop
@PowaPop 5 лет назад
Amazing! I have been struggling for hours and this did the trick in 10 minutes. Does anyone know how to now show the correct dot in the page control object?
@user-xz5sx8lm7h
@user-xz5sx8lm7h 7 лет назад
thanks you , your tutorials help me a lots!!
@sardarsaqibkhan4911
@sardarsaqibkhan4911 5 лет назад
thanks i am watching it in 2018 and get a lot of help
@rosimarcontreras3870
@rosimarcontreras3870 7 лет назад
Hello Brian, Thanks for the tutorial, question ... can you make a dynamic pageviewcontroller ?? That is, I fill my pageviewcontroller according to what I have in my database?
@yachaoshang2826
@yachaoshang2826 7 лет назад
Awesome tutorial. Can you do a tutorial about using firebase with IOS in the future?
@BrianAdvent
@BrianAdvent 7 лет назад
I already created a basics tutorial if you want to check out that one: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-D0MuaFzoxng.html
@yachaoshang2826
@yachaoshang2826 7 лет назад
Brian Advent How could I miss that, I check your channel everyday. Never mind. Thank you man.
@ronborneo1975
@ronborneo1975 7 лет назад
Awesome stuff. I've been wanting to learn iOS development, and I've found the perfect channel. One question: Each of the views can have it's own Cocoa Touch class and act independently from the others?
@krutomjer
@krutomjer 7 лет назад
Great tutorial, thank you for your time Brian !
@emmanuelogbewe2334
@emmanuelogbewe2334 7 лет назад
Great tutorial! Could you please make a video on how to create a custom camera like snapchat within app , that would be awesome ?
@rakeshshrestha7828
@rakeshshrestha7828 5 лет назад
Thank you sir :)
@gonesurfin8405
@gonesurfin8405 7 лет назад
Great tutorial! Just wondering if its possible to make the aqua colour page the first page when simulated? So you can swipe left and right sort of like snapchat! Thanks for your help!!!
@develocode7773
@develocode7773 5 лет назад
Thank for the tutorial! How do you add tabbs to this?
@mavalencia14
@mavalencia14 7 лет назад
Un ejemplo fácil y sencillo. Excelente vídeo.
@TommyKarlstedt
@TommyKarlstedt 4 года назад
Thanks for that, now how do you do implement state restoration with this, please?
@harishyadav2508
@harishyadav2508 5 лет назад
I am trying to implement a UIPageViewController and I am getting the following errors: my code as some yours Type 'RootPageViewController' does not conform to protocol 'UIPageViewControllerDataSource
@LarsVision
@LarsVision 5 лет назад
watch @3:28. you add it to the class, (extension) to made it conform.
@mohammadtahir7931
@mohammadtahir7931 7 лет назад
You are great and thanks a lot Man!!
@faizikhwan_
@faizikhwan_ 5 лет назад
How do you add a button for each view controller to go to next and backward?
@guruitcompany
@guruitcompany 7 лет назад
Very nice! 😊 thank you so much.
@mihirvaghela
@mihirvaghela 7 лет назад
awesome tutorial
@shingetzu88
@shingetzu88 7 лет назад
Hi Brian, thank you so much for this tutorial. Do you also have one that does this dynamically? Where the contents of the VC comes from a database so you dont know how many pages it will take. Plus, how to populate each page (will it be tableviews / uicollectionviews)? Thanks so much!
@BrianAdvent
@BrianAdvent 7 лет назад
Thanks man! If you want a dynamic solution you need two things: 1. for each type of VC you need to implement a function that loads the data e.g. from a specifically for your app created datamodel object. 2. This object needs to be loaded and added as a property once you instantiate a VC from the RootViewController class.
@TheParfaitducongo
@TheParfaitducongo 7 лет назад
hey Brian. I am having trouble implementing the setViewController on my pages "view controller". I want to jump to a specified view controller when a button is pressed on the current view controller. Any help please?
@sasaedo23
@sasaedo23 7 лет назад
How do you get an animation effect leads?
@rogerwprice
@rogerwprice 7 лет назад
Nice. Thanks!
@volkanelci6408
@volkanelci6408 7 лет назад
Can you please make a video about how to add a page control to that pageviewcontroller?
@BrianAdvent
@BrianAdvent 7 лет назад
Just as a quick hint: pageViewController:didFinishAnimating:previousViewControllers:transitionCompleted:will tell you when to update e.g. a pagecontrol. The last argument of the method transitionCompleted: can tell you whether a user completed a page turn transition or not.
@Ilyesbensalem91
@Ilyesbensalem91 7 лет назад
you are awesome dude
@nwsound3965
@nwsound3965 7 лет назад
godlike tutorials
@LarsVision
@LarsVision 5 лет назад
True...
@fernandomolinajacome6822
@fernandomolinajacome6822 7 лет назад
Muchas gracias 👍🏻
@emmanuelogbewe2334
@emmanuelogbewe2334 7 лет назад
Great tutorial , also Is it possible to use this to create an app where their first is a splash screen then a login Ui and it won't scroll until logging in is successful?
@mabialaemile8541
@mabialaemile8541 6 лет назад
yes Possible . it just depends on what you wanna do and also it depends on your design (different design have different implementation ) try to be more precise please . are you using firebase?
@salvatorecastelluccio4901
@salvatorecastelluccio4901 6 лет назад
If you add a button that segues to one of the View Controllers, how do you keep the Page View Controller still working. After the button segue, I get stuck on one View Controller and can no longer swipe between them.
@blizzalx
@blizzalx 6 лет назад
THANKS!
@thomastupper2594
@thomastupper2594 6 лет назад
How can you modify this code to also instantiate a page traversal under code control?
@Nintencario
@Nintencario 7 лет назад
What if you have a side bar menu and you can't set the page view controller as initial view controller. Will it still work?
@mauriciohoyte7546
@mauriciohoyte7546 7 лет назад
If its not my initial view? When I run it it goes all black like its nothing :/
@hamayunzeb8765
@hamayunzeb8765 7 лет назад
Mashallah.................
@Omeir34
@Omeir34 6 лет назад
Can’t we just use UICollectionViewCells to scroll pages?
@oSevenTV_
@oSevenTV_ 7 лет назад
how to fix this error? fatal error: Index out of range
@thestoryofusebruumur6810
@thestoryofusebruumur6810 7 лет назад
Hi Brain, firstly thank you for tutorial. I have a problem, I can't send data to other pages, I tried a lot methods but they didn't work. Can you help me ? Thanks...
@mabialaemile8541
@mabialaemile8541 6 лет назад
you can use a way called as " Notification " (not many people use it) but its easy 1) you create a notification from the viewcontroller that send the data 2) you receive that notification from the receiving uiviewcontroller 3) it's 3 steps per viewControllers (so a total of 6 or 7 lines of code depending of what you whant to pass ) stackoverflow.com/questions/24049020/nsnotificationcenter-addobserver-in-swift the only link i could find in english
@anonymouse7074
@anonymouse7074 7 лет назад
isn't checking if viewcontrollerlist.count != nextindex redundant if you checked if it's > nextindex?
@manasemichaelmhando8034
@manasemichaelmhando8034 7 лет назад
Also felt the same until when i took a second look, the first check simply will mute xcode from throwing out of index once the user reaches the last view controller and tries scroll once more.
@Nintencario
@Nintencario 7 лет назад
Hey brian how do I add dots(page control)
@mabialaemile8541
@mabialaemile8541 6 лет назад
eu... www.seemuapps.com/page-view-controller-tutorial-with-page-dots that might help
@suryareddy4606
@suryareddy4606 6 лет назад
Nice Tutorial! Helped a lot! For latest Xcode9, download full source code here:- github.com/suryareddyc1/UIPageViewController It's a Simple example without using any third parties!
Далее
А ВЫ ЛЮБИТЕ ШКОЛУ?? #shorts
00:20
Просмотров 2,8 млн
OG Buda, Слава КПСС - LAZER SLAVA
01:58
Просмотров 59 тыс.
Китайка и Зеленый Слайм😂😆
00:20
Vim Tips I Wish I Knew Earlier
23:00
Просмотров 64 тыс.
How to Animate a Button Menu (iOS, Xcode 8, Swift 3)
20:02
UIPAGEVIEWCONTROLLER Tutorial
19:44
Просмотров 10 тыс.