日々精進

新しく学んだことを書き留めていきます

2012-06-15から1日間の記事一覧

- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)inputTextで入力後の文字列を取得する

以下のDelegateメソッドを使うとUITextFieldに文字を入力するたびに文字入力前の文字列と入力した文字が取得できる。 - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)inputText …