Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering glitch / disappearing message bar #34

Closed
bobspryn opened this issue Apr 5, 2014 · 3 comments
Closed

Rendering glitch / disappearing message bar #34

bobspryn opened this issue Apr 5, 2014 · 3 comments

Comments

@bobspryn
Copy link

bobspryn commented Apr 5, 2014

Alright I can't figure out this one for the life of me. In the majority of the application the message bar works totally fine, but in one scenario it starts to display it and then immediately disappears.

http://www.screencast.com/t/zv3zbyox

[[TWMessageBarManager sharedInstance] showMessageWithTitle:@"Success!" description:@"You re-asked the question!" type:TWMessageBarMessageTypeSuccess callback:nil];

It's definitely called on the main thread, doesn't appear to be called twice, and hideAll is never called.

Any ideas where to look?

@bobspryn
Copy link
Author

bobspryn commented Apr 5, 2014

Oddly if I dispatch it after .5 seconds, it works properly.

@cdzombak
Copy link

cdzombak commented Apr 5, 2014

I don't have anything specific to offer, but I strongly suspect this is related to the action sheet being dismissed at the same time.

Perhaps the message bar's view gets attached to the action sheet's window/view (I am unsure of the action sheet's implementation offhand), and then disappears as that view is removed after it fades away?

That also explains why dispatching the message after a short delay seems to fix the issue.

@bobspryn
Copy link
Author

bobspryn commented Apr 5, 2014

Ahh that is a very good theory. I'll have to think if there's an elegant way around that. Thanks!

@bobspryn bobspryn closed this as completed Apr 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants