Is the instance of UIApplication given in didFinishLaunchingWithOptions is same as [UIApplication sharedApplication]
UIApplication sharedApplication instance is same as given in didFinishLaunchingWithOptions?
116 views Asked by Sourabh Mahna At
1
Yes, they are the same, for
UIApplication
is a singleton; the message[UIApplication sharedApplication]
returns that singleton object and so doesdidFinishLaunchingWithOptions
.