[ios] Fixed incorrect comparison

This commit is contained in:
Alex Zolotarev 2012-10-03 19:20:11 +03:00 committed by Alex Zolotarev
parent be3f83774b
commit 2b658b35a6

View file

@ -209,7 +209,7 @@
- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
[textField resignFirstResponder];
if (m_balloon.title != textField.text)
if (![m_balloon.title isEqualToString:textField.text])
{
if (textField.text.length == 0)
{