android plist表情,在iOS中的UITextView中不显示笑脸(表情符号)?

我已经存储在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标签中取得了所有含义。 –

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值