Convert unicode

前端 未结 3 2095
眼角桃花
眼角桃花 2021-01-15 12:48

I have a UITextField to enter a unicode value , when i tap a UIButton need to convert it and showing in a UILabel.
Th

3条回答
  •  猫巷女王i
    2021-01-15 13:39

    Problem is input should be char pointer

    NSString *str = [NSString stringWithUTF8String:[self.textField.text UTF8String]];
        m_CtrlLabel.text=str;  
    

提交回复
热议问题