Say you have a simple UIView with only text (ie, UILabel) and maybe some black lines.
As Apple Doc states, viewPrintFormatter attribute of UIView is defined in a UIView category but it's available only for instances of type: UITextView, MKMapView and UIWebView.
So you can either: