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

Portion of the table hidden when I send a message #24

Open
jjalcazar opened this issue May 15, 2014 · 7 comments
Open

Portion of the table hidden when I send a message #24

jjalcazar opened this issue May 15, 2014 · 7 comments

Comments

@jjalcazar
Copy link

Having the controller under a navigationcontroller, it works fine when it loads, but, when I write a message and send it (the table is updated), when I scroll to the top there is a portion hidden under the navigation bar

@andreamazz
Copy link
Owner

Hi @jjalcazar
Can you give me more information on your setup, or reproduce the bug in the sample project?

@jjalcazar
Copy link
Author

Hi @andreamazz
I just put the files from the sample project in my project, and I use the view which is the chat, under a navigation controller.
When I open the chat, it looks ok, but when I scroll to down and come back to the top, the content is behind the navigation bar.
Thank you and btw, good job

@andreamazz
Copy link
Owner

Are you using a translucent navbar?

@jjalcazar
Copy link
Author

I attach images:
I open the chat and it looks this way:
captura de pantalla 2014-05-17 a la s 16 11 31

When I send a text, if I scroll to the top looks this way:
captura de pantalla 2014-05-17 a la s 16 11 56
in the last attach the view is in the top, but the content is behind the navigation bar

@andreamazz
Copy link
Owner

Ok, looks like an inset problem, let me check and I'll get back to you

@andreamazz
Copy link
Owner

Ok, I can confirm that you just need to set your insets, like this:

    [self.tableView setContentInset:UIEdgeInsetsMake(64, 0, 0, 0)];

You can find the updated sample with a translucent navigation bar in the latest commit.

@jjalcazar
Copy link
Author

Thank you, I think that is

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