Number of characters in an NSString

前端 未结 1 1353
无人及你
无人及你 2020-12-31 14:46

I need a way to find the number of characters in an NSString. The nature of my app requires many multi char unicode characters, which presents obvious problems

相关标签:
1条回答
  • 2020-12-31 15:10

    You can enumerate the characters in the string with the NSStringEnumerationByComposedCharacterSequences option:

    NSString *string = @"0̄                                                                     
    0 讨论(0)
提交回复
热议问题