iOS Application Life Cycle and State | App Delegate vs Scene Delegate | Swift 5 2022

Поделиться
HTML-код
  • Опубликовано: 19 сен 2024
  • Managing Your App's Life Cycle - Respond to system notifications when your app is in the foreground or background, and handle other significant system-related events in Hindi Swift by Yogesh patel.
    👩🏻‍💻 Hello, If you want to join or have any questions do email me!
    codewithyogesh@gmail.com
    contact@codewithyogesh.com
    🏆 Review:
    Here are some of our student's review videos that explain what it's like to learn with us, and why they chose the course
    codewithyogesh...
    🔗 Suggest Video:Excellent ways to improve swift coding skills and confidence | Enhance Your Problem Solving Skills.
    • Excellent ways to impr...
    👋🏻 Let's connect!
    ➡ Instagram: / codewithyogesh
    ➡ Linkedin: / yogeshpatelios
    ➡ Twitter: / yogeshpatelios
    ➡ Facebook Page: / yogeshios
    ➡ Stack overflow: stackoverflow....
    ➡ Website: www.codewithyo...
    Like, Subscribe and Comment :-)
    Thank You!
    #iosapp #swift #appdevelopment #ios15 #iosappdevelopment #swiftdeveloper

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

  • @YogeshPateliOS
    @YogeshPateliOS  2 года назад +17

    Hello Good Evening, Here are the questions that I mentioned in the video -
    1. What is willFinishLaunchingWithOptions?
    2. Difference between willFinishLaunchingWithOptions and didFinishLaunchingWithOptions?
    3. What if I return false to the didFinishLaunchingWithOptions method?
    Just search on google, add your comment here, Apne fir check Karte hai answer right hai wrong hai then mai answer mera add kar Dunga. Happy Coding :-) Please like, and subscribe for more videos

    • @pratikzora
      @pratikzora 2 года назад +12

      Answers:
      1) willFinishLaunchingWithOptions - This method is intended for initial application setup. Storyboards have already been loaded at this point but state restoration hasn’t occurred yet. This method is called before didFinishLaunchingWithOptions.
      2) willFinishLaunchingWithOptions called first at initial level, then once App restoration has been complete, didFinishLaunchingWithOpations has been called.
      - willFinishLaunchingWithOptions Tells the delegate that the launch process has begun but that state restoration has not yet occurred.
      - didFinishLaunchingWithOptions Tells the delegate that the launch process is almost done and the app is almost ready to run.
      3) If we return false to the didFinishLaunchingWithOptions then, app will not able handle the given activity or url such as remote notifications.

    • @YogeshPateliOS
      @YogeshPateliOS  2 года назад +8

      Wahh 🤩🤩 All Answers are correct. Keep it up!

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

      Hi Bro, I want to enquire about the classes, how can I reach you?

    • @radhayadav7126
      @radhayadav7126 4 месяца назад

      @@YogeshPateliOS sir but my app still working after returning false in didFinishLaunchingWithOptions so what was the reason behind it.

  • @pratikzora
    @pratikzora 2 года назад +12

    Thank you for this video Yogeshbhai.
    Answers:
    1) willFinishLaunchingWithOptions - This method is intended for initial application setup. Storyboards have already been loaded at this point but state restoration hasn’t occurred yet. This method is called before didFinishLaunchingWithOptions.
    2) willFinishLaunchingWithOptions called first at initial level, then once App restoration has been complete, didFinishLaunchingWithOpations has been called.
    - willFinishLaunchingWithOptions Tells the delegate that the launch process has begun but that state restoration has not yet occurred.
    - didFinishLaunchingWithOptions Tells the delegate that the launch process is almost done and the app is almost ready to run.
    3) If we return false to the didFinishLaunchingWithOptions then, app will not able handle the given activity or url such as remote notifications.

    • @YogeshPateliOS
      @YogeshPateliOS  2 года назад +6

      Wahh 🤩🤩 All Answers are correct. Keep it up!

    • @KTV-1996
      @KTV-1996 Год назад +1

      thank you brother..😁

    • @pratikzora
      @pratikzora Год назад +1

      @@KTV-1996 You are welcome Shivambhai.

  • @funkee-pk3377
    @funkee-pk3377 2 года назад +2

    Thnx for this video....or jbse pol kiya tha tabse wait kr rha me.😁😁😁 once again thnx sir

    • @YogeshPateliOS
      @YogeshPateliOS  2 года назад +2

      Welcome brother. I hope this video is helpful for you :-) Please do like and subscriber.

  • @SWATIDASGUPTA
    @SWATIDASGUPTA Год назад +2

    The way you explained it's really amazing and understandable..Thank you😊

  • @sakshigothi2080
    @sakshigothi2080 9 месяцев назад +2

    3. This can prevent the app from becoming active, and in some cases, it might lead to the app being terminated.

  • @asmitapatil5266
    @asmitapatil5266 Год назад +1

    Bohat behtar tarikese aapne explain kiya i really liked it..thank h for it...

  • @anonymoussunny7127
    @anonymoussunny7127 4 месяца назад +2

    Just FYI, Actual video strats at 2:09

  • @malleshaholeyache4464
    @malleshaholeyache4464 Год назад +2

    Wow🤩. What a detailed and wonderful explanation brother 🙌. The way you explained about app states and the way you showing the same practically made me fully understand the concepts 😁. Lots of respect and support to you brother from me🤗😁. Keep doing this type of detailed videos always ☺️❤️.

  • @farmood100
    @farmood100 2 года назад +2

    Thanks Yogesh… you have explained very well. Thanks a lot

  • @developertesting130
    @developertesting130 2 года назад +2

    amazing, work done by you,very clear explanation of app lifecycle

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

      Thanks your so much for your appreciation! 😀🤝

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

    boht acche tarike se explain kiya h bhai. Keep it up!

  • @abhinavsrivastav5853
    @abhinavsrivastav5853 Год назад +2

    Great explanation bro,Kudos to effort!!

  • @garrybawa3149
    @garrybawa3149 Год назад +1

    You video are really helping me for my interview thanks….. Yogesh …… from mohali

  • @shubhamshankarjoshi3463
    @shubhamshankarjoshi3463 2 года назад +2

    Hi,
    Can you please make tutorial on app state restoration and spotlight search feature.

  • @dharmitshah7018
    @dharmitshah7018 Год назад +1

    Yourr videoss 💥

  • @ranawais116
    @ranawais116 Год назад +1

    such worth full video Thanks!

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

    Nice Explanation thank you so much @yogesh sir

  • @sakshichoudhary987
    @sakshichoudhary987 2 месяца назад

    Hi, sir 10:57 sir i have a question, agr background ki teeno app mei backgroud task chlra hai then?

  • @poojaraghuwanshi1914
    @poojaraghuwanshi1914 2 года назад +2

    Return false if the app cannot handle the URL resource or continue a user activity, otherwise return true. The return value is ignored if the app is launched as a result of a remote notification
    willfinishlunching called --- when app is ready to launch , before app state work
    didfinish will call when app is done with launch or almost ready to finish ,but after app state work complete

    • @KTV-1996
      @KTV-1996 Год назад

      i just looking for this type of answer, very simple to understand, thank you😁

  • @emdutt4012
    @emdutt4012 Год назад +1

    Thank u sir for this amazing video.

  • @faiqueAhmed28
    @faiqueAhmed28 Год назад +1

    Thank u sir for the amazing video ✌️

  • @venugopalreddy6618
    @venugopalreddy6618 11 месяцев назад +1

    Nice explaination

  • @U-and-Mee
    @U-and-Mee 2 месяца назад +1

    Nice Explanation

    • @YogeshPateliOS
      @YogeshPateliOS  2 месяца назад

      Thanks!

    • @U-and-Mee
      @U-and-Mee 2 месяца назад

      @@YogeshPateliOS Hi yogesh, Please Reply-
      i saw a video 1 .5 year before on your channel. which is about App controller cycle.
      In which you explain everything from a chart diagram, I am trying to find this video from last 7 days on your channel.
      Did you Remove this??????????????????????????????
      in which you explain- if url hit then call xyz method if not then call abc method.
      Please Help me Out.

    • @YogeshPateliOS
      @YogeshPateliOS  2 месяца назад

      @@U-and-Mee I haven't removed any videos. Would you please elaborate more about the video that you are looking for so I can help you.

    • @U-and-Mee
      @U-and-Mee 2 месяца назад

      @@YogeshPateliOS - Application life cycle videoo- first method call did finish launching with options Then Hit url- if yes then go to open url if no then application did become active-
      By flow chart diagram you explained everything.
      pta nhi- aapki uss video ka Title kya tha. trying to find from last week.
      Mai Switch dekh rhi hu, and interview me ye puchhte hi puchhte h.

    • @U-and-Mee
      @U-and-Mee 2 месяца назад

      Can you tell me by what title name should i search for above mentioned Video???

  • @gousejani9138
    @gousejani9138 Год назад +1

    If possible make video on Indian registration number validation in Swift..

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

    thnaks for your vedio
    kindly make a vedio on chat using firestore or realtime database

  • @yogeshkumarverma2125
    @yogeshkumarverma2125 Год назад +1

    You look like ZAKIR KHAN 🤩
    thanks for such a great explanation.

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

    Worth Watching
    Thank you

  • @divyavohra7419
    @divyavohra7419 2 месяца назад

    Hi Sir, Hope you are doing well .I want to join ur ios course.Could you please inform me on the same

  • @DeepakChalana-b7y
    @DeepakChalana-b7y Год назад

    Why is your app going directly to active state without any event after clicking on the app? You mentioned that the app is in an inactive state until we fire the event.

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

    Thank you very much

  • @RaviBeniwal-x2t
    @RaviBeniwal-x2t Год назад +1

    Barobar sir😅

  • @nikitabhise3905
    @nikitabhise3905 Год назад +1

    Hi Sir, Ur videos are very informative .I want to join ur ios course..Could you please inform me on the same

  • @YOSingh-i4x
    @YOSingh-i4x Год назад +1

    video start from 3:28

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

    what will happen when we remove the application from our app tray?

  • @SagarDas-bx8my
    @SagarDas-bx8my Год назад

    Sir will finish launching function executive just before the screen appears or we can say it run just after the viewdidload method

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

    why apple has created separate delegate class for same existing methods ?

    • @YogeshPateliOS
      @YogeshPateliOS  2 года назад +2

      Hey bro, I mentioned little bit about multiple window application(provided by Scene Delegate) that's the reason brother.
      The main reason for Apple to add UISceneDelegate to iOS 13 was to create a good entry point for multi-windowed applications. By the above theory you might have understood the roles of AppDelegate and SceneDelegate in iOS 13 and their life cycle events.
      Let me know is it clear or not? :-)

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

      @@YogeshPateliOS yes, Got it .. ThankYou for clarification 🫡

    • @YogeshPateliOS
      @YogeshPateliOS  2 года назад +2

      @@davevinay9964 Welcome 🫡

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

    hello bhai ,
    I am not able to reached your website.

  • @MohddAlii
    @MohddAlii 11 месяцев назад

    Website inactive

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

    can you make videos in english please? everyone can understand english but not everyone can understand hindi

    • @YogeshPateliOS
      @YogeshPateliOS  2 года назад +2

      Yes, true. First of all, really sorry for the trouble. Actually I started this channel in hindi language so I continue in same.
      Most of all developers are requested me for English language. Soon i am going to creat a new channel about swift language and upload videos on english.
      Thanks for your support please bare with me.

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

      @@YogeshPateliOS yes can't wait for that and no problem, thank you for your videos and the effort you make to provide content for us

    • @badalshah9995
      @badalshah9995 2 года назад +2

      @@YogeshPateliOS or you can add subtitles only in english. It will good for all .

    • @YogeshPateliOS
      @YogeshPateliOS  2 года назад +2

      @@badalshah9995 bro yes its good idea but it will take more time for adding subtitle because my videos are lengthy it terms of duration!