Advertisement
harishdy385

Untitled

Jul 1st, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. When I start typing word for example if type "A" it is not taking that pass to modal class but I type "AA"than take only 1st word why?
  2.  
  3. - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
  4. {
  5. if(IndustryTextField == textField && textField.text.length!=0)
  6. {
  7. [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(Customer_search:) name:@"Customer_search" object:nil];
  8. [NSThread detachNewThreadSelector:@selector(showLoadingIndicator:) toTarget:appDelegate withObject:nil];
  9. Modalclass *CCSM = [[Modalclass alloc]init];
  10. [CCSM SendRequest_Search_Customer:textField.text];
  11. }
  12. return YES;
  13. }
  14.  
  15. even not getting the same issue with this [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(textDidChange:) name:UITextFieldTextDidChangeNotification object:nil];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement