I would like to know if there is a simple way to access the main window or view in IOS. Something similar to:
[UIScreen mainScreen]
Thank you.<
The main window is best found using UIWindow * mainWindow = [UIApplication sharedApplication].windows.firstObject;
UIWindow * mainWindow = [UIApplication sharedApplication].windows.firstObject;
Using keyWindow can return a keyboard or UIAlertView window, which lie above your application window.
keyWindow