IPhone : How to do? Now Typing... in chat app

on Tuesday, March 31, 2015

I am working on chat app. enter image description here I want to show how if my friend is typing something then in my end the chat window will show.. Now typing...


i know a bit about code (to judge but not sure), but where to call api or its done by some sort of chat server's property ?



- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
{
if (range.length > 0)
{
// Friend is deleting
}
else
{
// Friend is typing
}
}

0 comments:

Post a Comment