UIApplication sharedApplication instance is same as given in didFinishLaunchingWithOptions?

159 Views Asked by At

Is the instance of UIApplication given in didFinishLaunchingWithOptions is same as [UIApplication sharedApplication]

1

There are 1 best solutions below

0
On BEST ANSWER

Yes, they are the same, for UIApplication is a singleton; the message [UIApplication sharedApplication] returns that singleton object and so does didFinishLaunchingWithOptions.