atomton / ATMHud

Library for the creation of HUDs in iPhone applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hide after show doesn't work

RVLVR opened this issue · comments

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

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

commented

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];
    });
    }
commented

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