-(NSMutableString *)fullWidthToHalfWidth:(NSString*)str{
NSMutableString *convertedString = [strmutableCopy];
CFStringTransform((CFMutableStringRef)convertedString,NULL,kCFStringTransformFullwidthHalfwidth,false);
return convertedString;
}
-(NSMutableString *)fullWidthToHalfWidth:(NSString*)str{
NSMutableString *convertedString = [strmutableCopy];
CFStringTransform((CFMutableStringRef)convertedString,NULL,kCFStringTransformFullwidthHalfwidth,false);
return convertedString;
}
本文标题:iOS全角转半角方法
本文链接:https://www.haomeiwen.com/subject/zfdxpttx.html
网友评论