Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Hide after show doesn't work #11

Open
RVLVR opened this issue Jul 27, 2011 · 3 comments
Open

Hide after show doesn't work #11

RVLVR opened this issue Jul 27, 2011 · 3 comments

Comments

@RVLVR
Copy link

RVLVR commented Jul 27, 2011

If for some reason hide method is called right after show method, it doesn't work and it stays shown.

@simonpang
Copy link

I also have this problem. The issue's gone if add 0.1s delay before calling hide but this hack is ugly

@kargnas
Copy link

kargnas commented Sep 3, 2012

This problem can be solved by modifying a code like this.

  • (void)hide {
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 0.05 * NSEC_PER_SEC), dispatch_get_current_queue(), ^(void) {
    [__view hide];
    });
    }

@kargnas
Copy link

kargnas commented Sep 11, 2013

But previous solution cannot solved this problem perfectly. (If using that code in one viewcontroller)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants