• Home
  • MAD
    • IOS Series
    • Android Series
    • Flutter Series
    • Xamarin Series
  • Concept Series
    • Software Design
    • Software Arch
    • GIT & Github
    • System Design
    • Cloud
    • Database Integration
    • Push Notification
    • API Integration
    • Cocoa PODS
  • DSA
  • Interview
  • Tips&Tricks
  • YT
  • Home
  • MAD
    • IOS Series
    • Android Series
    • Flutter Series
    • Xamarin Series
  • Concept Series
    • Software Design
    • Software Arch
    • GIT & Github
    • System Design
    • Cloud
    • Database Integration
    • Push Notification
    • API Integration
    • Cocoa PODS
  • DSA
  • Interview
  • Tips&Tricks
  • YT
  • #News
  • #APPS
  • #Events
    • #WWDC
    • #I/O
    • #Ignite
  • #Let’s Talk

MyCodeTips mycodetips-newlogocopy1

  • Home
  • MAD
    • IOS Series
    • Android Series
    • Flutter Series
    • Xamarin Series
  • Concept Series
    • Software Design
    • Software Arch
    • GIT & Github
    • System Design
    • Cloud
    • Database Integration
    • Push Notification
    • API Integration
    • Cocoa PODS
  • DSA
  • Interview
  • Tips&Tricks
  • YT
IOS

iOS Application LifeCycle !!!

IOS-Appilication-Lifecycle

 

  1. App Lifecycle events are available in AppDelegate.m file.
  2. When we launching the application first time, then control will goes “application:didFinishLaunchingWithOption” method.
  3. This method will be called only once when we starts the application.
  4. All application related initilization must be take place within this method only.
  5. The next method is called during the application launch i.e “ApplicationDidBecameActive”(if URL(Uniform Resource Locator)is not present).
  6. This method may be called multiple time.
  7. If the URL is available then control will enter info OpenURL or handleOpenURL method,from here control will goes to “ApplicatonDidBecameActive” method.
  8. After applicationDidBecameActive mode control will goes to applicationWillEnterForeground method for handling UI events.
  9. When user hits Home button or any interruption occures using phone calls or message then controll will goes to applicationWillResignActive method.
  10. In this method only we required to pause application related tasks if anything is in running status.
  11. From resignActiveMethod controll will goes to applicationDidEnterBackground method. this method can hold only for 5seconds so if we required more than this time, then required to handle “beginBackGroundTaskWithExpirationHandler” method.
  12. When the application enter into background if the memory is not available then application terminated by OS.
  13. When we double tap the Home button then application will be relaunched, when we are relaunching the application the controll will enter into foreground method, from there openURL or applicationDidBecameActive method will call.
  14. Whenever the application is terminating then, applicationWillTerminate method will call.
  15. Whenever app having memory related problem then applicationDidReceiveMemoryWarning method will called.
  16. In implementation when we are working with push notification services the we require to handle 1)application:didReceiveRemoteNotification 2)application:didReceiveLocalNotification.
Liked it? Take a second to support Ranjan on Patreon!
become a patron button
  • Click to share on Reddit (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • More
  • Click to share on Pocket (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
Written by Ranjan - 4479 Views
AUTHOR
Ranjan

Namaste, My name is Ranjan, I am a graduate from NIT Rourkela. This website is basically about of what i learnt from my years of experience as a software engineer on software development specifically on mobile application development, design patterns/architectures, its changing scenarios, security, troubleshooting, tools, tips&tricks and many more.

Next Post
Previous Post

Support us

mycodetips
mycodetips

Follow us @ LinkedIn 2850+

Subscribe for updates

Join 8,213 other subscribers

Latest Posts

  • YT-Featured-solidprinciples
    SOLID Principles of Software Design
  • IOS 16 Features
    Latest features in IOS 16
  • r-language
    How can R language be used for data analysis?
  • wordpress-coding-blog
    Guide To WordPress Coding Standards
  • YT-Featured-Algorithm
    What is Algorithm?
  • Frameworks of IOS
    Frameworks of IOS – Part ( I )
  • NSFileManager or NSPathUtilities
    NSFileManager or NSPathUtilities in Objective-C
  • Passing data between view controllers in Objective-C
    Passing data between view controllers in Objective-C
  • structures-classes-enum
    Structures and Classes in swift !
  • control-system-swift
    Control Flow in Swift
whiteboard

Whiteboard(PRO)

whiteboard

Whiteboard(lite)

alphabets

Kids Alphabet

techlynk

Techlynk

techbyte

Do2Day

techbyte

Techbyte

  • #about
  • #myapps
  • #contact
  • #privacy
  • #Advertise
  • #myQuestions

Android Android Studio API APP Programming Apps blogging CSS DATABASE dsa Features HTML HTML5 installation Interview Questions IOS iPhone javascript Mac objective-c OS Programming quicktips SDK SEO SQL swift Tips & Tricks Tools UI Web Wordpress Xcode

  • SOLID Principles of Software Design
  • Latest features in IOS 16
  • How can R language be used for data analysis?
  • Guide To WordPress Coding Standards
  • What is Algorithm?

©mycodetips.com