iOS Swift Tutorial: Programmatic and Storyboard Segues

Поделиться
HTML-код
  • Опубликовано: 2 янв 2025

Комментарии • 55

  • @CodePro
    @CodePro  6 лет назад +9

    Being able to move around in our apps is essential but we need to know the different types of segues and how they effect our app navigation. Let me know what you guys would like to see next.

  • @Cysecsg
    @Cysecsg 6 лет назад +11

    This video is too underrated. It deserve more likes! Straight to the point without unnecessary explanation to further confuse newbies. I love it.

    • @CodePro
      @CodePro  6 лет назад +2

      +Lim Joseph thanks for the positive feedback! I’m actually in the process of wrapping up a complete beginner tutorial series that covers all of these topics but goes through building a basic app step by step. I’ll share more details with the channel shortly

  • @mohamedelshamy1696
    @mohamedelshamy1696 4 года назад

    ty ty ty ty ty ty easy finally someone good

  • @luckcfm
    @luckcfm 2 года назад

    Great video. Thanks!

  • @tragedixtv1357
    @tragedixtv1357 5 лет назад

    You cannot imagine how much you help me, segue in storyboard for me was a magical and umbeatable thing ! Thank you

  • @TricoliciSerghei
    @TricoliciSerghei 5 лет назад +3

    Searched for 2 hours how to transition programmatically.. Thanks a ton!

  • @gangtu4704
    @gangtu4704 4 года назад

    Detailed and easy to understand!!! How come I can only give just one like!!👍

  • @joe.d.d
    @joe.d.d 4 года назад

    This is exactly what I was looking for! Using the Storyboard and NOT SwiftUI or just code

  • @desolationdispute9715
    @desolationdispute9715 6 лет назад +5

    Another concise and straightforward tutorial. The flow and the explanation is perfect.

    • @CodePro
      @CodePro  6 лет назад

      +Desolation Dispute thanks! Glad you found it helpful.

    • @girlsdrinkfeck
      @girlsdrinkfeck 5 лет назад

      apple is gay ,samsung is king

  • @melonote-ai
    @melonote-ai 4 года назад

    Very good video for newbie like me. I always come to Code Pro to learn the basics, before I want to dive into deeper topic.

  • @harprabhsangha5177
    @harprabhsangha5177 4 года назад

    Thank you so much sir.

  • @woedaalpha6841
    @woedaalpha6841 5 лет назад

    Thanks for the info!

  • @BranGaming20
    @BranGaming20 2 года назад

    how to segue from uiview class to uiviewcontroller sir

  • @ekawong
    @ekawong 4 года назад

    Thanks for the concise explanations! Really enjoyed it, and learnt a lot!

  • @hughedney7222
    @hughedney7222 3 года назад

    Is there any way to change how the back button looks, I have a game on my second page and it doesn't really fit it with my game style

  • @gdzin685
    @gdzin685 4 года назад

    Nice tutorial bro! it's very simple to understand your explanation! Thanks about your support!

  • @jackpitts5561
    @jackpitts5561 5 лет назад

    12:30 is how to segue to a different storyboard view, via code, but there USED to be a way to do this with drag-drop interface builder-- has that been deprecated?

  • @retrocoderss
    @retrocoderss 5 лет назад +1

    how to Segues diferent story board

  • @PushpendraSaini
    @PushpendraSaini 4 года назад

    Amazing video I was looking the same video for my project, Thank you so much

  • @_modiX
    @_modiX 3 года назад +2

    I miss the explanation of embedded segues and how to build them, programmatically. I still appreciate your content for the introduction into segues, at all.

  • @8samwong8
    @8samwong8 5 лет назад

    As a beginner of Swift programming, you help a lot. Thank you!

  • @dmitriyobidin6049
    @dmitriyobidin6049 5 лет назад

    13:56 Does this mean that if we delete navigation controller from storyboard our optional unwrapping on line 29 will give an exception? shouldn't we guard that?

    • @CodePro
      @CodePro  5 лет назад

      No, because the navigation controller is marked at optional, and because pushViewController is optionally chained via the ? nothing bad will happen if the navigation controller happens to be nil. If we needed to actually do something on the navigation controller, then yes, a guard let or if let check would be required to safely access the navigation controller in the event of it possibly being nil. If we did navigationController!.pushViewController(...) and the nav controller is nil, we'd crash immediately.

    • @girlsdrinkfeck
      @girlsdrinkfeck 5 лет назад

      IOs dosnt let u do shit m,apple is gay, android is king

  • @CharlesFerreira
    @CharlesFerreira 6 лет назад

    Nice, increased font size! Another awesome tutorial!

    • @CodePro
      @CodePro  6 лет назад

      +Charles Ferreira hah I didn’t forget and thanks!

  • @AsangaRamanayake
    @AsangaRamanayake 5 лет назад

    An extremely useful tutorial... 5 stars.

  • @georgerevell5643
    @georgerevell5643 3 года назад

    my app is crashing when I try unwrap navigationController. Any advice appreciated.

  • @wensmusic8636
    @wensmusic8636 3 года назад

    Hi Thank you for this video! it was very straight forward. I am wondering if we need to name the button as a segue or if we can just name the button based on its action? like for example, I am creating a game app that takes users to the next segue once the "START" button has been clicked, do we need to name that button as segue or can it just be given a name and coded as a segue?

  • @mahdiyarbahreman6379
    @mahdiyarbahreman6379 4 года назад

    How to reduce the speed of transaction?

  • @Comedyhawk21
    @Comedyhawk21 4 года назад

    Great video! In Xcode 12 creating a segue shifts the view controller down a bit... how can this be avoided?

    • @georgiebrough3912
      @georgiebrough3912 3 года назад

      Hi! I am having the same problem. Did you find a way to sort this at all?

    • @Comedyhawk21
      @Comedyhawk21 3 года назад

      @@georgiebrough3912 no, I switched to Glide to make my app since I realized I hate coding😂

  • @ryankanno2562
    @ryankanno2562 4 года назад

    Thank you for this video! Question: Why would you use a programmatic approach instead of using the storyboard? Using storyboard just seems more practical and faster. Any insight would be appreciated!

  • @chetangondaliya
    @chetangondaliya 5 лет назад

    can u provide link for source code?

  • @Pedruchito
    @Pedruchito 5 лет назад

    Thank you for your great tutorial video. I wonder where could I get help on passing the value of variables from one viewController to an other. I suppose my question may be too much to be taught by a youTube video. Thank you, anyway

  • @zwdesigns5694
    @zwdesigns5694 6 лет назад

    Could I do segues programmatically without an @IBAction? I'm not using storyboard at all.

  • @joshuabseitz
    @joshuabseitz 4 года назад

    king

  • @bitsurfer0101
    @bitsurfer0101 5 лет назад

    Why do your fonts look so small?

  • @joelbialluch5559
    @joelbialluch5559 5 лет назад

    by selecting 'show' on the segue, i wont get a Back Button. Why is that?

    • @deeptigautam9480
      @deeptigautam9480 5 лет назад

      Bcz ur arrow was not pointing to a navigaton contrllr

  • @lukassbeataddicts
    @lukassbeataddicts 3 года назад

    Programmatic UI is deleting Storyboard file before you start work.

  • @user-rf4vc7mt4d
    @user-rf4vc7mt4d 3 года назад

    me with less than 24 hours to get started and finish my college project: it's show time

    • @user-rf4vc7mt4d
      @user-rf4vc7mt4d 3 года назад

      Finished at around 11pm. Haven't slept for the last 24 hours. Think I'mma get a 90 boi

  • @user29a
    @user29a 5 лет назад +1

    When you create your UIViewController, if you chose "cocoa touch class" instead of "swift file" it would automatically make a nice View Controller subclass for you. Let the IDE do the work.

  • @mikelai1799
    @mikelai1799 6 лет назад

    Is it possible to create a segue for a line of code? If I used a search bar to create a list of items - can those items be segued to its own associated view controller? Many thanks.

    • @CodePro
      @CodePro  6 лет назад

      Yeah you can segue for any item in your table view. If your table view is dynamic, you can programmatically segue to any view controller based upon the selected item and send that selected item to the destination view controller. You can apply the same idea to static table views as well. Based on your question are you using a search bar controller?

    • @mikelai1799
      @mikelai1799 6 лет назад

      Thanks a lot for answering :) I'm just using a search bar not the controller.

    • @CodePro
      @CodePro  6 лет назад

      Ah I see, yeah you can segue to anything really you just need the view controller that you want to go to and you can execute a segue programmatically or through the prepareForSegue route.