views:

5

answers:

0

Hi,

I am trying to hide UIWindow from view controller ,

   NSArray *windows = [[UIApplication sharedApplication] windows];
if ([windows count] > 1)
{

    UIWindow *moviePlayerWindow = [[UIApplication sharedApplication] keyWindow];
    [moviePlayerWindow addSubview:CustomButton];

}

But come back to view controller i am not able to hide keywindow , i tried also "removeFromSuperview" but not working, pls help on that for hiding UIWindow .

Regards, KamalBhr.