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

UI issue over UITableView - section headers show through #242

Closed
mitchcohen opened this issue Sep 28, 2014 · 1 comment
Closed

UI issue over UITableView - section headers show through #242

mitchcohen opened this issue Sep 28, 2014 · 1 comment

Comments

@mitchcohen
Copy link

I ran into this with v0.9 on iOS 8. This is a rather vanilla UITableViewController with default (text-only titleForHeaderInSection) section headers. HUD being shown in viewDidLoad.

The code was:

[MBProgressHUD showHUDAddedTo:self.view animated:YES]

(Same result with self.tableView)

I worked around this with:

UIView *viewToUse=[[[[UIApplication sharedApplication] keyWindow] subviews] objectAtIndex:0];
[MBProgressHUD showHUDAddedTo:viewToUse animated:YES];

img_2640

@matej
Copy link
Collaborator

matej commented Sep 28, 2014

UITableView is a private view hierarchy. Don't add subviews directly on it. There have already been several other issues like this.

@matej matej closed this as completed Sep 28, 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