Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9073997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:32:22+00:00 2026-06-16T18:32:22+00:00

My webview shows webpage that contains video. This webview contains navigation bar and statusbar.

  • 0

My webview shows webpage that contains video. This webview contains navigation bar and statusbar.

The problem is that after watching videos in landscape mode and coming back to webview, the view height gets changed. And none of any methods of webview are getting invoked at that time.

It works fine in portrait mode watching.

Here are some screenshots of the views:


Before watching video / after watching video in portrait rotation


After watching video in landscape rotation

enter image description here

Why does that happen?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T18:32:23+00:00Added an answer on June 16, 2026 at 6:32 pm

    try to Add this line after watching the video..

    [[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone];
    

    UPDATE:

    - (void)viewWillAppear:(BOOL)animated
    {
            [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(update:) name:@"MPAVControllerPlaybackStateChangedNotification" object:nil];
    
            [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(update:) name:@"MPMoviePlaybackStateInterrupted" object:nil];
    }
    

    and the update method is bellow…

    #pragma mark - 
    #pragma mark NSNotification Action
    
    - (void)update:(NSNotification *)n {
        NSLog(@">>>>>>>>>>>>>>>>>>   Str Key ===>>%@",[NSNotificationCenter defaultCenter]);
    
        NSLog(@"\n\n\n\n\n>>>>>>>>>>> Updateing  >> %@ >>>>>>>>\n\n",[n description]);
    
        if ([[[n userInfo]objectForKey:@"MPAVControllerNewStateParameter"] intValue] == 0) {
            NSLog(@">>>>>>  1111111111111111111111111111111111111");
        }
        /*
         >>>>>>>>>>> Updateing  >> NSConcreteNotification 0x9c85740 {name = MPAVControllerPlaybackStateChangedNotification; object = <MPAVController: 0x6770010>; userInfo = {
         MPAVControllerNewStateParameter = 1;
         MPAVControllerOldStateParameter = 2;
         }}>>>>>>>>
         */
    
        if ([[[n userInfo]objectForKey:@"MPAVControllerNewStateParameter"] intValue] == 1 && [[[n userInfo]objectForKey:@"MPAVControllerOldStateParameter"] intValue] == 2  ) {
            [[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone];
            //[[UIDevice currentDevice] setOrientation:UIInterfaceOrientationPortrait];
        }
    
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The problem is: my application shows a WebView for a user, and after when
I have a webview that shows some animated boxes, but it slows down and
This link shows how to inject JavaScript code to WebView object in Android. However
I have a webview that loads a webpage. I also have a reload button.
I have a webview that performs a search, this code works great for below
I have a webview that shows a message to confirm an user interaction. That
I have Webview application that uses progress bar dialog. It works fine but the
I have a webview which shows lines when scrolling up and down. I load
I have a webview, which shows the pages of a ebook. I want to
I have a webview that's supposed to show cyrillic text wv.loadData( myStringHtml, html/text, utf-8);

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.