When developing a program, because the requirement needs to display something on the status bar and click, and the window level of the clicked thing is higher than the status bar, multiple UIWindow are used, and when the video is played in the key window, The coordinates of the other window have been changed, causing the display to be abnormal. At this point, as long as the custom other window to inherit UIWindow, in the window class to add this method, is inherited from UIView, and then judge as long as the trigger needs to receive the click of the area to return yes, the other return no is OK, at the same time to take your window Frame set to full screen, color set to clear color
-(BOOL) Pointinside: (cgpoint) point withevent: (Uievent *) event
{
if (Cgrectcontainspoint (CGRectMake (0,progress_view_y_offset,status_bar_height,online_status_bar_width), point))
{
return YES;
}
return NO;
}
IOS7 program adds multiple UIWindow, call Mpmovieplayerviewcontroller play video, except key window Other window coordinates will be changed, how to do