Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

resignFirstResponder on chatInput clears the tableView #8

Closed
YDing opened this issue Dec 12, 2011 · 4 comments
Closed

resignFirstResponder on chatInput clears the tableView #8

YDing opened this issue Dec 12, 2011 · 4 comments
Labels

Comments

@YDing
Copy link

YDing commented Dec 12, 2011

It'd be nice to have the capability to hide the keyboard upon sending the message. Therefore, I added [chatInput resignFirstResponder] to the sendMessage method. However, invoking this function call seems to clear the entire view of chats. The screen just becomes empty when the button is pressed.

@smit9612
Copy link

smit9612 commented Feb 7, 2012

I am also getting this issue. Is anybody able to resolve this issue?

@smit9612
Copy link

  • (void)slideFrame:(BOOL)up curve:(UIViewAnimationCurve)curve duration:(NSTimeInterval)duration
    {
    if(keyboardIsShowing)
    {
    viewFrame.size.height -= keyboardEndFrame.size.height;

    }
    else
    {
    viewFrame.size.height += keyboardEndFrame.size.height;
    }
    chatBar.frame = CGRectMake(0.0f, contentView.frame.size.height-kChatBarHeight1,
    contentView.frame.size.width, kChatBarHeight1);
    chatContent.frame = CGRectMake(0.0f, 0.0f, contentView.frame.size.width,
    contentView.frame.size.height-kChatBarHeight1);
    }

@smit9612
Copy link

Problem is view frame.size.height was reduced twice & its get that value in negative.

@ma11hew28
Copy link
Member

I'm closing this issue because I think the keyboard should stay up after your send a message, just like it does in the native iPhone Messages app.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants