This code was executed before [window makeKeyAndVisible];
which is inside the app delegate.
So, no wonder why keyWindow
was nil
yet.
More Related Contents:
- Get Exif data from UIImage – UIImagePickerController [duplicate]
- Is it possible to reference a variable with a string and an int?
- Has anyone implemented the PayPal API through a native iPhone app?
- canonical way to randomize an NSArray in Objective-C
- Difference between [NSMutableArray array] vs [[NSMutableArray alloc] init]
- Property vs. instance variable
- IOS 6 force device orientation to landscape
- Converting & to & in Objective-C [duplicate]
- Playing system sound without importing your own
- iPhone ivar naming convention [duplicate]
- Determining if an iPhone is Jail broken Programmatically
- What does an underscore signify in the name of a member variable in Objective-C? [duplicate]
- How to detect that animation has ended on UITableView beginUpdates/endUpdates?
- View frame changes between viewWillAppear: and viewDidAppear:
- How to write a simple Ping method in Cocoa/Objective-C
- Weird Switch error in Obj-C
- NSString retainCount is 2147483647 [duplicate]
- How to combine video clips with different orientation using AVFoundation
- NSURLRequest : Post data and read the posted page
- Choose custom sound for local notifications
- Where should I save data & files I want to keep long term, and how do I prevent iCloud from backing them up
- How can you read a files MIME-type in objective-c
- How to set a custom font for entire iOS app without specifying size
- Change the first character in each word of a string to uppercase
- How to programmatically change the hue of UIImage?
- How to make ui responsive all the time and do background updating?
- When should I initialize a view controller using initWithNibName?
- Find Frame Coordinates After UIView Transform is Applied (CGAffineTransform)
- (iphone) UIImageView setImage: leaks?
- iPhone : How to set BackgroundColor of UIButton with buttonType UIButtonTypeCustom