Thank you. This helped me a lot with NC. The concept is simple, but I was hung up for a long time getting text out of a function on one VC and into a labels on other VCs. You made the components of the NC Post and Observer system clear.
Your videos are great, but zooming so often might be little bit distracting and hard to follow. You might want to stick with one view and make the font size bigger and it will be fine. Thank you for your videos.
This doesn't seem to be working when I try to do it the other way. Push data from the first vc to the second. I am posting the notification but I have to do it before pushing the second view controller and the second vc never receives the notification.
Thanks A lot that is great I have a question how to switch to other story board from NSObject class I used what you wrote but it said no present in NSObject please help me
For me, I am still unable to see the completionHandler in my initial viewcontroller. The error says "Value type of 'ViewController' has no member 'completionHandler' " I have added public in front of the variable
Thanks for the excellent tutorial. I have used the notification solution to send an object from the second to the first viewController. But what about sending an object from the first to the second. I was setting the observer and a different notification name and pushed the second viewController on the stack by navigationController?.pushViewController() . But the notification does not get noted . Any idea how to get the object to the second ViewController ?
Good tutorial! Question: using the completionHandler version, would it be possible to have the save button on vc2 make an image on vc1 switch to another image?
Thank you for the tutorial. I got one question as I am not using storyboard but XIB to do. So for the line "let vc = storyboard?.instantiateViewController(identifier: "other") as! OtherViewController" should not work for me... What should I do with this? Thanks
Is there a way to do this on a macOS app, where a vc1 button can change text on vc1 and vc2? Basically like a text display for extended view, where vc1 controls what the text is, and it displays on vc1 and vc2. Once a button on vc1 is pressed, it changes the text on vc1 and vc2. How to make this work?
Hi. I have 3 view controllers.First home, second login and third about news. They are connected with segues. And I use unwind segue for third viewController. Because when I hit back button it returns to login screen. When I use unwind segue it was working good but one problem is my login screen is still seen about 1 second. How can I solve that. Thank you.
how do I do a conditional statement? i have a code that does something like this: input(text field) < 5 { (sends me to view controller2) } if-else input(text field) > 5{ (sends me view controller1)
really thank you so much for the valuable information , I am an iOS Development student , I am on my final project and I am trying to send data from a viewController (textfield and label) to a uiTabelView , can you please let me know what is the best way to do so ?
Man, I really don't get it. I followed about 10 tutorials but I never get the option 'present'. I just don't know how to change the current viewcontroller programmatically.. I just don't know what i'm doing wrong. Could you help me?
Followed and finished this tutorial today! Thank you! I'm struggling with the next step to Passing data. If I wanted to collect data from Two View Controllers, say "Other" & "More", and then bring it back into noteViewController. How would I do that? Example, 1. User clicks "OtherScreen" from note. 2. Types in to the "OtherViewController" and clicks a "Next Page" Button 3. Types in to the "MoreViewController" and clicks "Save"
Thanks for watching. To do what you described you have several options. You can retain the data somewhere and use closures to pass the data back like completion Handlers. You can use the delegate / datasource pattern. Or you can use the notification center pattern.
Enjoy my teaching style? Learn to build the TikTok App from scratch with my course!
ios-academy.teachable.com/p/building-tiktok-for-ios
i love how you explain those different method, not just like showing only the code, thanks a lot
but please help me how to pass multiple data
Youre welcome
@@iOSAcademy its works on do single data, but i dont know how to do with 2 or more data to pass
Thanks for the video tutorial. The Observer was the most interesting place.
Thank you. This helped me a lot with NC. The concept is simple, but I was hung up for a long time getting text out of a function on one VC and into a labels on other VCs. You made the components of the NC Post and Observer system clear.
Thanks!
thanks... this one helped a lot
once again, thank you!
Youre welcome
Thanks a lot!
You're welcome!
helpful but the zoom in feature you have when presenting is disorientating
Thank you! I appreciate the tips!
YOu're very welcome
How do you manage to explain any concept with such a simplicity?
You're amazing. Thanks a lot!
You're more amazing! thank YOU
That a lot bro, it is a good way for moving data from A-> B or B->A Controller.
Please upload one more video for this pass data.. Multiple labels and multiple textfields.. Data transfer and save it
Sure!
very thank you!!!!!
You’re welcome
both method are super advanced, to be honest not suitable for newbie , only for swift experts. but thanks for share anyway
Thanks for the feedback
Your videos are great, but zooming so often might be little bit distracting and hard to follow. You might want to stick with one view and make the font size bigger and it will be fine. Thank you for your videos.
Thanks for the feedback :) And thanks for watching!
when you messed up with the button, on the OtherViewController, at first I thought I'm really lost, how is then actually possible....?
Very well job man :D ty
Thanks!
This doesn't seem to be working when I try to do it the other way. Push data from the first vc to the second. I am posting the notification but I have to do it before pushing the second view controller and the second vc never receives the notification.
Thanks A lot that is great
I have a question how to switch to other story board from NSObject class I used what you wrote but it said no present in NSObject please help me
i tested this on my iPhone and the keyboard doesn't dismiss, how do i dismiss the keyboard
ResignFirstResponder
Thank you
Youre welcome!
For me, I am still unable to see the completionHandler in my initial viewcontroller.
The error says "Value type of 'ViewController' has no member 'completionHandler' " I have added public in front of the variable
@iOS Academy , Really looking forward to see Swift UI stuff from your side
how can I do this with a switch?
notification center not working
Check your observer
Thanks for the excellent tutorial.
I have used the notification solution to send an object from the second to the first viewController.
But what about sending an object from the first to the second. I was setting the observer and a different notification name and pushed the second viewController on the stack by navigationController?.pushViewController() . But the notification does not get noted .
Any idea how to get the object to the second ViewController ?
Great Video!!! saved me, but how do you manage to do all zooms while recording? its so epic since i have bad sight, which software do you use?
Thank you so much for the tutorial, it was excellent. I love it
Your welcome! Make sure to subscribe for more :)
Good tutorial! Question: using the completionHandler version, would it be possible to have the save button on vc2 make an image on vc1 switch to another image?
What about using segues? Are segues considered outdated?
how does one capture a global variable data from one view controller to another without using segue or moving to a new viewcontroller?
Thank you for the tutorial.
I got one question as I am not using storyboard but XIB to do. So for the line "let vc = storyboard?.instantiateViewController(identifier: "other") as! OtherViewController" should not work for me...
What should I do with this? Thanks
One question I have is how to save information in your app so that when you renter the app it’s still there
Hi there, to do this you can use User Defaults or a Database. I recently published two videos explaining each of these topics - cheers!
Is there a way to do this on a macOS app, where a vc1 button can change text on vc1 and vc2?
Basically like a text display for extended view, where vc1 controls what the text is, and it displays on vc1 and vc2. Once a button on vc1 is pressed, it changes the text on vc1 and vc2. How to make this work?
how to show data from login user by json ?
Can you say how to do in MVVM
Hey Brother what is your problem? whay your video screen zoom in and zoom out more and more!???
New videos have no zoom
@@iOSAcademy Thank you bro.
Hi. I have 3 view controllers.First home, second login and third about news. They are connected with segues. And I use unwind segue for third viewController. Because when I hit back button it returns to login screen. When I use unwind segue it was working good but one problem is my login screen is still seen about 1 second. How can I solve that. Thank you.
Hello! Is it possible to copy and paste code from one cocoa touch class view controller.swift to another view controller.swift?
how do I do a conditional statement?
i have a code that does something like this:
input(text field) < 5 {
(sends me to view controller2)
}
if-else input(text field) > 5{
(sends me view controller1)
really thank you so much for the valuable information ,
I am an iOS Development student , I am on my final project and I am trying to send data from a viewController (textfield and label) to a uiTabelView , can you please let me know what is the best way to do so ?
You are most welcome - closure sounds like the approach you want
how do you store the text value in a double and pass that between view controlers
You can just pass a string
Man, I really don't get it. I followed about 10 tutorials but I never get the option 'present'. I just don't know how to change the current viewcontroller programmatically.. I just don't know what i'm doing wrong. Could you help me?
Hey, sometimes Xcode autocomplete just sucks. Try typing it in your self: self.present(, animated: true)
iOS Academy That actually worked 😅 thank you!!!
Followed and finished this tutorial today! Thank you!
I'm struggling with the next step to Passing data. If I wanted to collect data from Two View Controllers, say "Other" & "More", and then bring it back into noteViewController. How would I do that?
Example,
1. User clicks "OtherScreen" from note.
2. Types in to the "OtherViewController" and clicks a "Next Page" Button
3. Types in to the "MoreViewController" and clicks "Save"
Thanks for watching. To do what you described you have several options. You can retain the data somewhere and use closures to pass the data back like completion Handlers. You can use the delegate / datasource pattern. Or you can use the notification center pattern.
@@iOSAcademy can you make the video please
please stop zooming in and out
it is highly visible when you keep it in a normal angel
New videos have no zoom
Am I the only one getting UIRESPONDER in my assistant editor even after I create a new class for my View Controller ??
Where is the github repo? Btw I love ur vids
Thanks, I dont think I mmade one for this one
I wished you didn't zoom in as much ... It made things harder to see which file you were in, or which tab you were in etc ... Really dizzy too.
New videos have no zoom
Anyone else find the constant zooming in to be super frustrating?
Stop Zooming please.. It hurts our eyes
New videos have no zoom
I got motion sickness!! son of a gun
haha new videos have less zoom :)
this didn't work for me
never mind, I made a mistake lol
No prob!
I had to stop watching because your constant zooming in and out was very jarring. Other than that it seemed like you were doing well explaining it.
OMG stop zooming !!! =)) vomit is coming out