IOS7 program added multiple UIWindow, call Mpmovieplayerviewcontroller play video, except key window Other window coordinates will be changed, how to do

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.