Hide after show doesn't work
RVLVR opened this issue · comments
REVOLVER commented
If for some reason hide method is called right after show method, it doesn't work and it stays shown.
Simon Pang commented
I also have this problem. The issue's gone if add 0.1s delay before calling hide but this hack is ugly
kars 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];
});
}
kars commented
But previous solution cannot solved this problem perfectly. (If using that code in one viewcontroller)