Failing to compile code

Hello ,

I am trying exact same code as given in the book on page 184.

CGRect windowFrame = [[UIScreen mainScreen] bounds];
UIWindow *theWindow = [[UIWindow alloc] initWithFrame:windowFrame];
[self setWindow:theWindow];

However this is giving me error as “Initializer element is not a compile-time constant”. Can someone please tell what needs to be changed ? I am using Xcode 5.1 for development.

Thank you.