Swift Tutorial: Container View Controllers for Beginners (Swift 5, Xcode 11, iOS)

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

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

  • @headach09
    @headach09 3 месяца назад

    Thank you for helping me grasp the concept of the Container View so quickly.

  • @kapildongre3996
    @kapildongre3996 2 года назад +1

    Thanks a lot your tutorial helped me a lot..!!!

  • @PraveenT-xp2zo
    @PraveenT-xp2zo Год назад

    Will it swipe? if i drag viewcontroller instead of tabs?

  • @DaLakersFan24
    @DaLakersFan24 2 года назад +1

    Great.. to the point

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

    You do your IF ELSE statements the same way I do. Nice to see someone who's code looks like mine. Thank you for the video. I'm busy reading the controller view documentation now and this helped a lot in understanding what they're talking about.

  • @theevanator9252
    @theevanator9252 4 года назад +1

    Keep making these vida

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

    trying to connect to the outlets in the container view but they appear nil. Do you know the reason behind it?

  • @theevanator9252
    @theevanator9252 4 года назад +1

    I needed this thx

  • @prathyushad6547
    @prathyushad6547 4 года назад +1

    Hi... great tutorial! Helped a lot.
    I am new to coding and I don't understand what a container app is. All the identical apps put together in one app is what I find on searching. Can you please explain it in detail and post a video how it can be done...
    Thank you in advance!

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

      I think you are referencing container controllers? Container apps - that include sub apps are not allowed per Apple developer guidelines. Or are you thinking of React Native container apps that render web components? The term "container" is very generic haha

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

      @@iOSAcademy Thank you for replying 😊I developed music apps and submitted 3 apps to the appstore without any difficulty... but when I submitted the 4th app, I got a mail from apple. It says
      "We noticed that your app provides same feature set as other apps submitted to the app store; it simply varies in content or language, which is considered a form of spam."
      "When creating multiple apps where content is the only varing element, you should offer a single app to deliver differing content to costumers."
      Can you please explain what this means and how to implement it. If I choose to stuff everything in a single app, it wouldn't solve my purpose and the app would be too big

  • @jeffrysandypurnomo5558
    @jeffrysandypurnomo5558 3 года назад +1

    Amazingg!! thankyouu

  • @anuragwhocodes5383
    @anuragwhocodes5383 Год назад

    thanks

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

    I know you did it for the purpose of explaining the concept, but why would you not just change the backgroundcolor of the base ViewController when the button is tapped. In other words, what is the benefit of having two different VCs?

  • @suhwanlim7270
    @suhwanlim7270 3 года назад +1

    nice!!

  • @charity4613
    @charity4613 4 года назад +1

    is there a way to do segmented controls with only 2 view controllers?

  • @paulmykhailov
    @paulmykhailov 4 года назад +1

    What is the difference between addChild(secondVC) and self.view.addSubview(secondVC.view)? Thanks

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

      One is the controller itself and the other is its view

    • @paulmykhailov
      @paulmykhailov 4 года назад +1

      @@iOSAcademy I see. The thing I can't really understand is when I comment
      // addChild(secondVC)
      // addChild(thitdVC)
      // secondVC.didMove(toParent: self)
      // thitdVC.didMove(toParent: self)
      and leave only
      self.view.addSubview(secondVC.view)
      self.view.addSubview(thitdVC.view)
      secondVC.view.frame = self.view.bounds
      thitdVC.view.frame = self.view.bounds
      thitdVC.view.isHidden = true
      Everything remain working.

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

    How can I do that without a storyboard?

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

    Question: when you add something in story board, does story board generate codes to the file so we can make further adjustments in code to what story board added? or the code is hidden which is added by story board? (code view and storyboard not interacting each other?)

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

    great work ! keep the good ones coming !

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

      Thanks! Much appreciated.

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

    Howdy! Great material! I had a question, I have a scene with two VC's, I have a three Segmented Controller on the main VC, I'm trying to set up the 3rd button to navigate to a 2nd view controller. I have a switch setup, I need to set case 3: to navigate to the 2nd controller. I'm having difficulty trying to find any answers. Thx for any feedback!

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

      Thanks! What is the issue you are having? You should add a 3rd item to the segment and another contained vc

  • @theevanator9252
    @theevanator9252 4 года назад +1

    I have one question: what’s happens when your views that you are switching are connected to a swift file because then it doesn’t work

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

      If I understand your question correctly, what you'll need to do is override the views for the child view controllers in loadView function. Those views are simply the view of the child View controller. ie: childVC.view - so update it internally there.

  • @ps27ps27
    @ps27ps27 2 года назад +1

    why typing viewcontroller.swift rather than moving a mouse cursor 2 centimeters? beginners will not even understand where it is

  • @mikedesigndeveloper2512
    @mikedesigndeveloper2512 3 года назад +1

    I can't put a container in a .xib?

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

    I need this thanks. but the movement of the screen is too annoying because it makes me distracted. it would be so much better if you make it static with bigger font. thanks again

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

      Thanks for watching and the great feedback :)