0
iPhone의 키보드 이모티콘이 표시되면서 UItextFiled에 맞춤 이모티콘을 표시 할 수 있습니까? 문서를 확인했지만 어떤 방법도 찾지 못했습니다.UITextField에 맞춤 이모티콘 표시
iPhone의 키보드 이모티콘이 표시되면서 UItextFiled에 맞춤 이모티콘을 표시 할 수 있습니까? 문서를 확인했지만 어떤 방법도 찾지 못했습니다.UITextField에 맞춤 이모티콘 표시
당신은 the Link
- (BOOL) textField: (UITextField *)theTextField shouldChangeCharactersInRange: (NSRange)range replacementString: (NSString *)string {
NSRange range = {NSNotFound, 0};
NSString *s = @"This is a smiley :)";
range.location = 0;
range.length = [s length];
s = [s stringByReplacingOccurrencesOfString:@":)"
withString:@"\ue415"
options:NSCaseInsensitiveSearch
range:range];
}
[http://stackoverflow.com/questions/1389379/adding-smileys-to-uitextview-or-uitextfield][1] [HTTP에서 다음과 같은 코드를 사용할 수 있습니다 : //stackoverflow.com/questions/8616172/show-smiley-icons-into-an-uitextfield] [2] [1] : http://stackoverflow.com/questions/1389379/adding- smileys-to-uitextview-or-uitextfield [2] : http://stackoverflow.com/ques/8616172/show-smiley-icons-into-an-uitextfield – iArezki