baker icon indicating copy to clipboard operation
baker copied to clipboard

Problem with show index bar after even exit full-screen video

Open aspek opened this issue 13 years ago • 9 comments

This problem is caused by even after exit full-screen video or closed ModalViewController (Only in iOS 6.1 / 5.1 work fine)

case from exit full-screen video indexbar can show only a sec and it hide automatic.

But if try to open full screen and exit it again. The problems are gone.

aspek avatar Mar 30 '13 12:03 aspek

I have the same problem, when open an external link or a full screen video the index bar disapear or appears 20px in the bottom.

aguebel avatar Apr 05 '13 20:04 aguebel

The problem has been solved. in BakerViewController.m

- (void)viewWillAppear:(BOOL)animated {
if (!currentPageWillAppearUnderModal) {

        [super viewWillAppear:animated];
        [self.navigationController.navigationBar setTranslucent:YES];


        if(currPage==nil){

        // ****** LISTENER FOR INTERCEPTOR WINDOW NOTIFICATION
        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleInterceptedTouch:) name:@"notification_touch_intercepted" object:nil];

        // ****** LISTENER FOR CLOSING APPLICATION
        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleApplicationWillResignActive:) name:@"applicationWillResignActiveNotification" object:nil];
        }
    }
}

aspek avatar Apr 06 '13 17:04 aspek

Thank you aspek, I made this change in the code, but now, after visiting a website or a video, only the top bar appears when you double-tap on the publication, any solution on this?

aguebel avatar Apr 06 '13 18:04 aguebel

What version of baker did u use?

aspek avatar Apr 06 '13 18:04 aspek

4.0

aguebel avatar Apr 06 '13 19:04 aguebel

I dunno. Did you have this code yet? in closeModalWebView

- (void)closeModalWebView {
    /****************************************************************************************************
     * This function is called from inside the modal view to close itself (delegate).
     */

    currentPageWillAppearUnderModal = YES;

    // Check if iOS5+ method is supported
    if ([self respondsToSelector:@selector(dismissViewControllerAnimated:completion:)]) {
        // iOS 5+
        [self dismissViewControllerAnimated:YES completion:nil];
    } else {
        // iOS 4
        [self dismissModalViewControllerAnimated:YES];
    }

    // In case the orientation changed while being in modal view, restore the
    // webview and stuff to the current orientation
    [self willRotateToInterfaceOrientation:self.interfaceOrientation duration:0];
    [self didRotateFromInterfaceOrientation:self.interfaceOrientation];
}

aspek avatar Apr 06 '13 19:04 aspek

I'm about to close this thread. Are you still getting the problem with the latest version of Baker?

Simbul avatar May 13 '13 22:05 Simbul

Yes, I'll try with the new version 4.1 this week.

aguebel avatar May 14 '13 13:05 aguebel

@aguebel any news?

Simbul avatar Jun 03 '13 20:06 Simbul