I've been Googling, grepping and searching high and low, but can't find the answer. Which header file do I need to include to get the definitions of these constants in iOS?
NSLineSeparatorCharacter
NSNewLineCharacter
NSParagraphSeparatorCharacter
I've been Googling, grepping and searching high and low, but can't find the answer. Which header file do I need to include to get the definitions of these constants in iOS?
NSLineSeparatorCharacter
NSNewLineCharacter
NSParagraphSeparatorCharacter
Those constants are defined in NSText.h
which is only for OS X, not iOS. Therefore you can't use those constants in iOS.
NSLineSeparatorCharacter
is defined as: 0x2028
NSNewLineCharacter
is defined as: 0x000a
NSParagraphSeparatorCharacter
is defined as: 0x2029
In Swift, this can be defined as:
let NSNewLineCharacter = "\u{000a}"
let NSLineSeparatorCharacter = "\u{2028}"
let NSParagraphSeparatorCharacter = "\u{2029}"