textField:shouldChangeCharactersInRange:replacementString: http://blog.csdn.net/mamong/article/details/44964801