How to remove hexadecimal characters from NSString

前端 未结 3 1717
时光取名叫无心
时光取名叫无心 2021-01-22 14:49

I am facing one issue related some hexa value in string, i need to remove hexadecimal characters from NSString.

The problem is when i print object it prints as \"BLANK

3条回答
  •  天命终不由人
    2021-01-22 15:33

    First, don't trust the Xcode debugger. Print characterAtIndex:0 to be sure that you really have what you think you have.

    Second, deleting stuff is all good and well, but you are doctoring around with a symptom. You should really try to figure out where the contents of _lastUpdatedBy comes from and why it is what it is. You might have a serious bug here and trying to cover it up. For example, there might be a bug that stores rubbish data instead of the correct data, and you are just covering up for that bug.

提交回复
热议问题