To change the frame of another added UIWindow, you must launch your window with the desired frame:
self.myNewWindow = [[UIWindow alloc] initWithFrame:CGRectMake(10, 10+20, 300, 440)];
Set property bindings to objects:
[self.myNewWindow setClipsToBounds:YES]
And then, by installing rootViewController in a new window, also set its frame:
self.myNewWindow.rootViewController = self.fooViewController; [self.myNewWindow makeKeyAndVisible]; self.fooViewController.view.frame = CGRectMake(0, 0, 300, 440);
It works on iPhone and iPad.
source share