我已经存储在plist中通过iPhone所支持的所有单码(表情符)。当我直接写为在iOS中的UITextView中不显示笑脸(表情符号)?
- (IBAction)sendButtonSelected:(id)sender {
NSMutableArray *emoticonsArray = [[NSMutableArray alloc]initWithObjects:@"\ue415",nil];
NSString *imageNameToPass = [NSString stringWithFormat:@"%@",[emoticonsArray objectAtIndex:0]];
NSLog(@"imageNameToPass1...%@",imageNameToPass);
messageTextView.text =imageNameToPass;
}
显示它的表情符号中的TextView但只要我从plist中
NSString *plistPath1 = [[NSBundle mainBundle] pathForResource:@"unicodes" ofType:@"plist"];
NSDictionary *dictionary = [[NSDictionary alloc] initWithContentsOfFile:plistPath1];
activeArray= [dictionary objectForKey:categoryString];
NSLog(@"activeArray...%@",activeArray);
emoticonsArrayForHomeEmoji = [[NSMutableArray alloc]initWithCapacity:[activeArray count]];
for(int i=0; i
{
id objects = (id)[activeArray objectAtIndex:i];
[emoticonsArrayForHomeEmoji insertObject:objects atIndex:i];
}
NSString *imageNameToPass = [NSString stringWithFormat:@"%@",[emoticonsArrayForHomeEmoji
objectAtIndex:0]];
NSLog(@"imageNameToPass1...%@",imageNameToPass);
messageTextView.text =imageNameToPass;
取话,就说明Unicode作为在文本视图,而不是表情图案文字\ ue415。
我在做什么错?请帮助我!
2012-10-02
Ketan
+0
和你的Xcode有关的问题是什么? (哦,或者另一种滥用Xcode标签的情况?猜测我在没有Xcode的情况下进行iOS开发需要多长时间?两年,是啊......) –
2012-10-02 14:45:30
+0
@ H2CO3:你的意思是我在问这样的问题时不使用xcode标签。 –
+0
@ketanrajput Xcode是完全不相干的程序为iPhone,除非你有一个Xcode具体的问题。出于某种原因,人们不理解这一点,这是令人难以置信的令人沮丧的,因为它从XCode标签中取得了所有含义。 –