NSTextContainer is an iOS class that defines a region in which text stored in an NSTextStorage object is displayed using an NSLayoutManager object.