forked from mirrors/linphone-iphone
Fix invalid state bar when editting a contact
This commit is contained in:
parent
1b57057d2d
commit
4fbf31e104
1 changed files with 4 additions and 2 deletions
|
|
@ -339,7 +339,8 @@
|
|||
|
||||
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {
|
||||
if(contactDetailsDelegate != nil) {
|
||||
[self performSelector:@selector(updateModification) withObject:nil afterDelay:0];
|
||||
//add a mini delay to have the text updated BEFORE notifying the selector
|
||||
[self performSelector:@selector(updateModification) withObject:nil afterDelay:0.1];
|
||||
}
|
||||
return YES;
|
||||
}
|
||||
|
|
@ -363,7 +364,8 @@
|
|||
[LinphoneLogger logc:LinphoneLoggerWarning format:"Not valid UIEditableTableViewCell"];
|
||||
}
|
||||
if(contactDetailsDelegate != nil) {
|
||||
[self performSelector:@selector(updateModification) withObject:nil afterDelay:0];
|
||||
//add a mini delay to have the text updated BEFORE notifying the selector
|
||||
[self performSelector:@selector(updateModification) withObject:nil afterDelay:0.1];
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue