Given that yourTextView is an object of type UITextView:

yourTextView.textContainer.lineFragmentPadding = 0.0;