UILabel的unicode私人区域

时间:2012-05-12 20:37:50

标签: iphone objective-c ios unicode uilabel

我试图在我的UILabel中设置\ f010作为unicode,但它不起作用。此格式为Unicode专用区。我该怎么做呢?以下是我设置它的方法:

 [homeFeedButton setTitle:@"\f010" forState:UIControlStateNormal];

1 个答案:

答案 0 :(得分:0)

尝试NSString *str=[NSString stringWithFormat:@"%C",unicodestring]; // unicodestring vontains your unicode string

然后将setv作为标题