iOS Idiom 1 Jan 4th, 2011 To access the main window UIWindow *mainWindow = [[[UIApplication sharedApplication] delegate] window];