Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想定义一个NSString长度为 1 的 ,其唯一字符是不间断空格。我应该怎么做 ?
NSString
使用通用字符名称:
// http://en.wikipedia.org/wiki/Non-breaking_space NSString* const nonBreakingSpace = @"\u00A0"; // small-u takes four digits, big-u takes eight // NSString* const nonBreakingSpace = @"\U000000A0";