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

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 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 3 หลายเดือนก่อน

      @@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 ปีที่แล้ว +5

      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.

  • @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.

  • @anonymoussunny7127
    @anonymoussunny7127 3 หลายเดือนก่อน +2

    Just FYI, Actual video strats at 2:09

  • @SWATIDASGUPTA
    @SWATIDASGUPTA ปีที่แล้ว +2

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

  • @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😁

  • @asmitapatil5266
    @asmitapatil5266 ปีที่แล้ว +1

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

  • @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.

  • @shubhamshankarjoshi3463
    @shubhamshankarjoshi3463 2 ปีที่แล้ว +2

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

  • @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

  • @abhinavsrivastav5853
    @abhinavsrivastav5853 ปีที่แล้ว +2

    Great explanation bro,Kudos to effort!!

  • @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! 😀🤝

  • @sakshichoudhary987
    @sakshichoudhary987 2 หลายเดือนก่อน

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

  • @saalimkhan4133
    @saalimkhan4133 2 ปีที่แล้ว +1

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

  • @garrybawa3149
    @garrybawa3149 ปีที่แล้ว +1

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

  • @gousejani9138
    @gousejani9138 ปีที่แล้ว +1

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

  • @user-mk3yv3hu3z
    @user-mk3yv3hu3z ปีที่แล้ว +1

    video start from 3:28

  • @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

  • @U-and-Mee
    @U-and-Mee 2 หลายเดือนก่อน +1

    Nice Explanation

    • @YogeshPateliOS
      @YogeshPateliOS  2 หลายเดือนก่อน

      Thanks!

    • @U-and-Mee
      @U-and-Mee หลายเดือนก่อน

      @@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  หลายเดือนก่อน

      @@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 หลายเดือนก่อน

      @@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 หลายเดือนก่อน

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

  • @venugopalreddy6618
    @venugopalreddy6618 11 หลายเดือนก่อน +1

    Nice explaination

  • @yogeshkumarverma2125
    @yogeshkumarverma2125 ปีที่แล้ว +1

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

  • @emdutt4012
    @emdutt4012 ปีที่แล้ว +1

    Thank u sir for this amazing video.

  • @faiqueAhmed28
    @faiqueAhmed28 ปีที่แล้ว +1

    Thank u sir for the amazing video ✌️

  • @user-me2wy9wm4x
    @user-me2wy9wm4x ปีที่แล้ว

    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.

  • @developertesting130
    @developertesting130 2 ปีที่แล้ว

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

  • @mittalshah821
    @mittalshah821 2 ปีที่แล้ว +1

    Worth Watching
    Thank you

  • @divyavohra7419
    @divyavohra7419 หลายเดือนก่อน

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

  • @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

  • @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

  • @deeprajchowrasia6090
    @deeprajchowrasia6090 ปีที่แล้ว

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

  • @user-gr4dj8os8n
    @user-gr4dj8os8n ปีที่แล้ว +1

    Barobar sir😅

  • @roushilsingla6325
    @roushilsingla6325 2 ปีที่แล้ว +1

    Thank you very much

  • @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 🫡

  • @MohddAlii
    @MohddAlii 11 หลายเดือนก่อน

    Website inactive

  • @devsoni4428
    @devsoni4428 ปีที่แล้ว

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

  • @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!