Thanks for naming the variable the same as the function, the same as the controller, and the same as the property. Way to go genius.
@NGUFashion10 жыл бұрын
This guy deserves more subscribers! Love your videos , you provide much more value than pewdiepie and other people. :)
@Archetapp10 жыл бұрын
Haha, Thanks! :)
@Fail4FunTV9 жыл бұрын
Hi Jared, i have a question. So I have 2 view controllers: "SpillereViewController" and "HovedViewController". In "SpillereViewController" i have an array that looks like this below: var mineSpillere = ["1", "2"] How can i reach that array in the other view controller named "HovedViewController"?
@itubevinod9 жыл бұрын
You are like an egghead but for iOS as opposed to the Web. Always a pleasure to watch your videos
@clearedblur8 жыл бұрын
Awesome. I'm using Xcode 8.0 and I had to change one thing but it works! Thanks for the video! override func prepare(for segue: UIStoryboardSegue, sender: Any?) { let DestViewController : ViewTwo = segue.destination as! ViewTwo DestViewController.LabelText = TextField.text! } I'm still learning, so I apologize for not being able to leave an explanation. I'm sure someone will leave one below.
@imagenigraphics7 жыл бұрын
thanks! exactly what i'm looking for
@wcbeach309 жыл бұрын
I think I am going to be watching a lot more of your videos! Thanks for putting yourself out there!
@QAInsights7 жыл бұрын
Excellent tutorials. If I want to pass the data from VC A to B to C. How to achieve that? Please help me out. Thanks!
@kirtipandya46187 жыл бұрын
This lecture is awesome. I have also seen other lecture from other guy where he showed to perform segue first and then prepare segue. Is there any advantage of that??? 1) " performSegue(withIdentifier: "abc", sender: xyz)" and then 2) "override func prepare(for segue: UIStoryboardSegue, sender: Any?)". Looking forward for your help. Thank you in advance.
@mt.lagunatimelapse3117 жыл бұрын
Simple, clear and understandable. Well done.
@sepehrraissian86219 жыл бұрын
Hi Jared great tutorial! Straight to the point and with great quality! The only problem I have is that when I use Push instead of Modal my app crashes and gives an error in my AppDelegate. I would really appreciate for any suggestions.
@tcprado7 жыл бұрын
You're Mormon! Way to go brother! I like your tutorials!
@beachdj3098 жыл бұрын
Well Done worked for me first try when others were too complicated!
@krooqs9 жыл бұрын
Hey Jared, your videos are fantastic, you have great animations and being able to put a face to an instructor is super important. This was great for my for my level of programming knowledge and I just want to let you know that I think what your doing is amazing. School will only get you so far, it's entrepreneurship, constant improvement and dedication that you need which it seems you have in spades. Congratulations on your efforts :)
@Archetapp9 жыл бұрын
Gavin Rossiter Thank you very much for this comment! I figure the best time to start is now, and KZbin just pushes me to learn more. :)
@HabibKhan-mj6uc9 жыл бұрын
thanks a lot for these videos Jared! There isn't much free video content on iOS development with Swift. The concepts you go over are pretty common/useful too :)
@jacksontech18 жыл бұрын
thanks Jared, u made everything looks so simple!
@TylerAndrews9 жыл бұрын
Thought I'd share: I had some troubles getting things to hook up after I entered my ViewTwo in the Identity Inspector - I couldn't hook up the label & whatnot. I found that if you clean your project (Command + Shift + K) and then build it (Command + B) it worked; also the automatic Assistance Editor showed ViewTwo when you click on the second view in the Storyboard when you do that :) Hope this maybe helps!
@shadihammoudeh19898 жыл бұрын
Hi Jared, is it possible to do what you did in this tutorial but without using segue? basically I am moving from the first view controller to the next one using instantiateViewController function and I use the same function to move from the second to the first.
@jannisgrimm68210 жыл бұрын
Hi Jared, that was a great video of yours. You should do more of those. Now I was wondering if you could do a tutorial on how to make an application that gets its data from the internet since that is kind of intersting. That would be so awesome. Thanks
@birdiesarecute19 жыл бұрын
Your tutorials are so helpful! :) I wonder if you could make a follow up to this one where there is an edit button on the second view controller with the label, and that edit button will send back to the textfield where the user can change the info and resave the edited info back to the label?
@imagenigraphics7 жыл бұрын
Do we have to connect the Button to the function or we don't need to?
@ReeRay8 жыл бұрын
Great video! Keep up the great work!
@Archetapp8 жыл бұрын
Thanks! Will Do. :)
@ReeRay8 жыл бұрын
Jared Davidson I have a quick question. How can I make 6 TextFields and transfer the text to a label on another view controller in swift 3.0? Thanks a lot!
@ReeRay8 жыл бұрын
Thanks for the video! Great Job! Keep up the great wont! Don't pay attention to the haters!
@robertrichardson50049 жыл бұрын
HiJared, thank you for such excellent tutorials. you email tutorial was very helpful for what i'm doing. quick question. have you done any tutorials on sharing files in swift. If someone records something how can I set up a sharing feature? Also, may I suggest that you create Udemy courses on your knowledge.
@RaisesCom28 жыл бұрын
Did he just say "it sounds like Mewtwo"?? you sir win at life
@ad_exodus8 жыл бұрын
Lol ikr
@Maetschll7 жыл бұрын
+1
@gauravpande6 жыл бұрын
+1 for a 'Legendary' statement.
@chiarapolverini1748 жыл бұрын
Hi Jared, Since I started from a few days to use Xcode program, I'm not very able. I'm creating an app for a company and I have five pages. I connected the fourth to the fifth. How can I show in the Label (in the fifth page) the number of the Segmented Control (in the fourth page) that was selected by the User?
@blok18 жыл бұрын
Hi Jared, great vid Was wondering if you could help me with a related issue i have I a trying to pass data from a selected pickerview textfield within a nav controller After following your points the program crashes when the first button is pressed when transitioning to the screen where the selected content will be selected What I need to do is: - press a button from the first screen - which takes me to the next page where the pickerview options will be selected - the selected content from the pickerview then appears in the text field under the picker view - I then need the selected content to appear on the next screen after clicking the confirm button Any help or a tutorial vid on this would be a huge help Thanks in advance
@DieselBoulder8 жыл бұрын
Super helpful tutorial. I had slightly different code though to get it to work. To get the prepareforsegue to work I had to change the code from "...as ViewTwo" to "...as! ViewTwo" && from "...TextField.text" to "...TextField.text!" I'm not quite sure the need for the ! character??
@GregDevelopment9 жыл бұрын
Hi Jared! I am currently making an app in which I am using this method of passing Data between view controllers, but for some reason, it is not working for me... Would you maybe be able to take just a few minutes to look at my problem? Would be much appreciated. Thanks!
@martinboroff24838 жыл бұрын
Jared I tried to change this project to pass a string array without success. I also viewed your video on passing a tableview. The problem with using the navigation controller is the first view controller has to be a view controller. My project is a single view app that is building an array of strings. When a button is press I want to display the values of the array in a tableview. Can you help?
@SaraKataf9 жыл бұрын
Thank you so much for your videos!! they are really helpful!!!
@DrChazz267 жыл бұрын
Love the videos. You've helped me a lot already. Do you have any videos on NSUndoManager? I can't find anything. If not, is that something you could cover in the future?
@Vfxtemple8 жыл бұрын
Hey Jared! I have a quick question... I am struggling a lot: I have 2 View Controllers (1st View controller contains a Segmented Controller with titles that I want to change from the 2nd View controller where I have Some Text Fields that I am using as Settings for the labels in the first view controller) I am unable to display them in the first view controller. Should be more like you did here but I can not seem to make it work. Can you help me a bit?
@alt5728 жыл бұрын
Thanks for the tutorial, it helped me a lot!
@zhoujiechen22607 жыл бұрын
Great! I learnt how to use Segue.. Thank Youu!!
@calvinschofield38719 жыл бұрын
Awesome Background!
@ad_exodus8 жыл бұрын
Hey! My school sent me this video!! Great Tutorial!!! -lukas H ;)
@Androken10 жыл бұрын
Hey Jared, You give us nice look at thing inside Xcode and iOS development. This is really helpful
@Archetapp9 жыл бұрын
Thanks!
@JimmyGunawanX7 жыл бұрын
Jared, can you do tutorial of how to export out ARKit nodes data, or share it live with other users?
@husseinalbehary42867 жыл бұрын
Thanks for your tutorial really helped me :) I've noticed that you mostly use New Swift file for creating UIVewController class instead of Cocoa Touch file which automatically creates a class and file for either UIViewController or UITableView, so is there is a secret behind that or you just like to start with empty file ?
@maximotartaglia66539 жыл бұрын
Hi Jared, thank for your video, i have a question regarding View Controllers I have three View Controllers. In the third of them, i am loading a lot of sound files. The problem I have is that when i go back to the second view, and then pass to the third after a few passes, the app crash because of it open a lot of files (remember that i say in the third view i open a lot of sound file), Is there a possibility to load the files only one time? Thank you in advance. Maximo
@Jerruhhmee9 жыл бұрын
Could I also use this same method for passing an image to another view controller?
@AndrewMindHacker8 жыл бұрын
Why do I need prepareSegueWithIdentifier then? Thanks for your help.
@cnsengineer5 жыл бұрын
Clear explanations, thanks!
@Kbebita9 жыл бұрын
does this also work for an tapped application?
@AlexHadfield7 жыл бұрын
Nice wallpaper!
@razalcaraz18478 жыл бұрын
Thanks!!! You saved me hours!!!
@bogdanbarbulescu25498 жыл бұрын
@ Jared. I keep getting this error after i enter some text in the text field and click on the button: fatal error: unexpectedly found nil while unwrapping an Optional value } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { let DestViewController: ViewTwo = segue.destinationViewController as! ViewTwo DestViewController.LabelText = TextField.text! } } I tried to both as? and as! , none of them works. and 'as' is not working. I am using Xcode Version 7.3 . Thanks
@coreypattakoswow8 жыл бұрын
Please make a tutorial like this.. with a main menu, and a "random" button and it give user a random page. also with a button that is a "daily" page that will change day by day. hearing a lot of people looking for how thats made on the internet and not one person explain. guessing it needs a data base of pages that it will be filtered by?
@lucasskywalker8 жыл бұрын
Great video. Very helpful!
@AstrikoM110 жыл бұрын
You are the best, Thanks so much Bro!
@Archetapp10 жыл бұрын
No Problem! Thanks for watching! :)
@yztyzt19 жыл бұрын
HI jarde: should I do it with delegates? In case I want to build multiple MVC's? thx!
@yztyzt19 жыл бұрын
yztyzt1 Hi: Jared: I owe you a large apology. I hadn't realized that what you were doing actually IS DELEGATION. The reason I didn't know this is that you never used a protocol. In my noob learning, I had thought that delegations needed a protocol. It turns out you can just name a variable casted as the class to which you want to send info. For example, you casted destinationViewController as? ViewTwo. Then, you can just control any variable that is of the ViewTwo type. So, you controlled ViewTwo.LabelText from the destinationViewController.LabelText. It was just so weird to have all my other sources tell me that delegation needs to conform to a protocol and be implemented by the class that conforms to that protocol. All the while, you just skipped that whole thing and you still were able to effect a delegation whereby you passed information a different viewController. I hope I am making sense. I am trying to explain why I didn't realize that what you did WAS DELEGATION. I am a noob, trying to put the pieces together in order to make sense for my head. I have a lot of things around which I need to wrap my head : - ). Sometimes it feels so daunting that I think I would never get there. But, then I think to you and think toward where you must have been when you started. You probably started in the same place as me and just grinded your way through all the extremely confusing concepts one piece at a time. At least that is what I am guessing. Right? No one just naturally gets this stuff, do they? Anyone who understands this must have spent hundreds of hours on this material, right? At least that is what i am hoping. Otherwise, I am a lost cause. Live On! CHOOSE THE RIGHT! CTR, mutha facka! CTR!
@andretavera8 жыл бұрын
Tnks again Jared! Keep the good work!
@ad_exodus8 жыл бұрын
Jared from subway XD
@jacobsiegel38808 жыл бұрын
Thank you. Great example!
@ИванАкулов-щ4ш9 жыл бұрын
The prepareForSegue method doesn't work for accessing IBOutlet vars from another view controller. Regular vars do work. So you can't use DestViewController.Label.text = .... So variation you use is correct
@after5oclock9057 жыл бұрын
This is brilliant. Thank you.
@mikefrank26434 жыл бұрын
How would it be for the saved data to be seen in several viewcontrollers without using segue ???
@miguelanjos19 жыл бұрын
it worked but only after on override fun changing var to let and as to as! thanks for tutorial!!!
@westfield907 жыл бұрын
Do you not need. Navigation controller? If not can you explain why not?
@JobinJose10 жыл бұрын
Hey Jared, nice tutorial. Cud u pls make one on doing the same with delegates? Thank u!
@Archetapp10 жыл бұрын
I'll look into it. :)
@JobinJose10 жыл бұрын
Jared Davidson tnx man
@kashishsoni56108 жыл бұрын
can i find this thing without swift? i mean is there another link for learning this in obj-c?
@Peech6 жыл бұрын
How can I make the text that we inputted in the TextField remain in the label even when you close the app entirely?
@jessietorres13879 жыл бұрын
How would you do it using a Tab View Controller?
@anthonywor8 жыл бұрын
Good afternoon. We have to view controllers. The second view controller we created a back button to go back to the first view controller and it doesn't work. We put the go back function in the first view controller which we know is correct. What are we missing?
@kylep.58709 жыл бұрын
I used this on an app that has actions on the next page. If i leave the text blank and go to the next view controller, the actions work. If I enter text, then it goes to the next page but I get "Thread 1: signal SIGABRT" in AppDelegate. I am very new, so I am sorry if it is simple.
@MadalinaFlorina9 жыл бұрын
+Kyle P. Did you solve that ?
@seppeclijsters64337 жыл бұрын
explained very well! Thank you :)
@poomipakpongraveevongsa83398 жыл бұрын
can i pass this data to use for many page?
@vusalahasanli42007 жыл бұрын
Thank you for nice explanation:)
@AhmedElAlfy19899 жыл бұрын
Hey Jared, I came across your video while searching for something similar. so I have a main screen with 2 buttons (1 Player or 2 Player) I want create a variable NumberOfPlayers and feed that to my other SecondViewController.swift file so its not the input from the UIViewController. So in my FristViewContoller I have: @IBAction func Player1Clicked(sender: UIButton) { NumberOfPlayers = 1 } @IBAction func Player2Clicked(sender: AnyObject) { NumberOfPlayers = 2 } and in my SecondViewController I want: if NumberOfPlayers = 2 { } Do you know how to pass it across files? Thanks in advance
@AhmedElAlfy19899 жыл бұрын
Nevermind, took me to days to get it but I did. My FirstViewController: override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject!) { var SecondVC: SecondViewController = segue.destinationViewController as SecondViewController if segue.identifier == "Player2Button"{ SecondVC.NumberOfPlayers = 2 }else{ SecondVC.NumberOfPlayers = 1 } } Then just use NumberOfPlayers in the SecondViewController.
@pincake97189 жыл бұрын
Ace Green I had a similiar problem, thank you for the explanation!!!!
@kajalshah9167 жыл бұрын
Thanks !its helped to understand!
@zimingwang63017 жыл бұрын
Hello, I have got a probelm. For example, I have 3 viewer, and I put 2 button in view 2, one for passing text to view 3 and the other one is for go back to view 1. The problem is that the go back button is always failed to go back, why is that happen? Thank you
@liujacky22078 жыл бұрын
Really nice video!
@crsyelf8 жыл бұрын
thanks a lot for sharing. one question, I have one table view with custom cell. when I click on the cell, it will open a new view controller. may I know how to pass that data from that cell to new view controller. I need to pass user name and phone number to new view. thanks a billion.
@crsyelf8 жыл бұрын
***** Thanks a lot, I already solved it myself. Thank you thank you so much for helping me. You are advanced iOS developer? Nice to meet you.
@begimaiq7 жыл бұрын
can you make tutorial on how to add activity indicator on a tableview? couldn't find any worthy tutorial on youtube. thank you ;)
@danielreyessanchez22998 жыл бұрын
I'm having an error when trying to do the same but the secondViewController is embed in a navigationViewController.
@satyamsaluja19957 жыл бұрын
Brother, can you please do a video on other ways to pass data from one view controller to another? I mean the one in which we make an object of UIStoryboard and then we declare another variable through which we go to a specific storyboard and access and present that specific viewcontroller on the screen. Please please do that video, my basics are not very clear.
@joemczitcheroski23698 жыл бұрын
How do you make it so the data saves? For example, on your view controller I would have a score which would increase and eventually become a high score. On your View Two I would show the high score. I'm having a little trouble with this. My high score saves; however, when I first open my app it does not appear. I have to play a game first then it will show me the high score.
@dent3248 жыл бұрын
Amazing dude! Thanks a lot!
@maybe98orNot8 жыл бұрын
Hello! I was wondering how I can pass numbers (if that makes sense) like I want the user to enter in a number, then the system automatically multiplies that by .15 and I want the outcome to be displayed on the secondViewController. I need this to be in a double, correct? Idk, help...
@amreeshkumar45338 жыл бұрын
Good work And help full for me. Thanks Dear
@Bennyclay6617 жыл бұрын
will this work with adding data to firebase? i would like to spread a profile data information over two view controllers , ie email , username and password on one view controller than press next if there are no errors it will store the data and the go to the next view controller where i will add gender , age , location to the same UID ? and then perhaps to a third view controller where i will update a display picture could you do a video on this ?
@joeybodnar9 жыл бұрын
is it possible to do something similar with didSelectRowatIndexPath ?
@dishantkalyani9 жыл бұрын
Hi Jared.I found this tutorial useful.Can you please upload a tutorial on how to send images from one View Controller to another View Controller.Please revert back.Thanks!
@coresoftware8678 жыл бұрын
Your are the best of the best :)
@rumanali77586 жыл бұрын
i solved my problem god bless you
@ellietille56917 жыл бұрын
Thanks, man.. You go...
@eduardodebernardi65529 жыл бұрын
thanks for the tutorial! but i try to do that with a collectionView but i can´t get the current indexPath and the data that appear is wrong. i try to with the sentence performSegueWithIdentifier but stop the ejecution
@gdorman6199 жыл бұрын
How do you make a back button in IOS using swift? I have to two screens and i want my second screen to have a traditional back button to go to screen one. Thanks!
@gdorman6199 жыл бұрын
Gary Dorman I figured this out.
@chumioCharlie9 жыл бұрын
Good job!
@Archetapp9 жыл бұрын
+Charlie Caruana Thanks! :)
@jonwatson50567 жыл бұрын
how can I send questions to be anwered by another user?
@gongfu27289 жыл бұрын
nice video ! thanks!
@AkshayKheveriaiitr9 жыл бұрын
hey, can u tell me how can i call a function from one view controller to another?
@NZBarker9 жыл бұрын
+Akshay Kheveria Not sure exactly what you mean, as I'm also new to Swift. From Jared's other videos, I learned that you can define a class/function/struct in a separate swift file and it will be global. something like: struct name { static var first = ''Akshay" static var last = "Kheveria" } then you can use/edit name.first from anywhere in your project. Same goes for classes or functions. Not sure if this is the best way to do this, or even if it's what you want to know.
@AlamirPage9 жыл бұрын
thank you very very much man ... this was really helpful