views:

112

answers:

0

I tried this code for customizing the screen size.. But it works well this 2.2.1 but it doesn't work with sdk 3.1.2..Its showing some error as windows count beyond bound.. can anyone tell me how to this in 3.1.2. else is there anyother method to customise the screen in 3.1.2. plz help. thanks

NSArray *windows = [[UIApplication sharedApplication] windows];  
UIWindow *moviePlayerWindow = [windows objectAtIndex:1];
NSArray *subviews = [windows subviews];
UIView   *videoView = [subviews objectAtIndex:0];
videoView.frame = CGRectMake(300,20,440,130);