compare special characters like À with regular A

前端 未结 3 1345
北海茫月
北海茫月 2021-01-25 20:54

In some languages there are letters like À, I saw that for table view sections the native iOS put À under the same section as A.
I wan

3条回答
  •  醉酒成梦
    2021-01-25 21:44

    Here's a great article about CFStringTransform on NSHipser http://nshipster.com/cfstringtransform/

    Next, apply the kCFStringTransformStripCombiningMarks transform to remove any diacritics or accents.

提交回复
热议问题