Latest 1.2.0
Homepage https://github.com/steipete/PSPDFTextView
License MIT
Platforms ios 6.0, requires ARC
Authors

A subclass of UITextView that fixes the most glaring problems from iOS 7 and 7.1.

What’s fixed?

  • When adding a newline, UITextView will now properly scroll down. Previously, you needed to add at least one character for this to happen.
  • Scrolling to the caret position now considers contentInset. UITextView completely ignored this.
  • Typing will also consider contentInset and will update the scroll position accordingly.
  • Pasted text will scroll to the caret position.

UITextView:

UITextView

PSPDFTextView:

PSPDFTextView

Read more in my blog post: http://petersteinberger.com/blog/2014/fixing-uitextview-on-ios-7/

License

Taken from the commercial PSPDFKit – a framework for displaying and annotating PDFs in your iOS apps.
This class has been relicensed under the MIT license.

Latest podspec

{
    "name": "PSPDFTextView",
    "version": "1.2.0",
    "summary": "A subclass of `UITextView` that fixes the most glaring problems from iOS 7 and 7.1.",
    "homepage": "https://github.com/steipete/PSPDFTextView",
    "screenshots": "https://github.com/steipete/PSPDFTextView/raw/master/Example/fixed.gif",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Peter Steinberger, PSPDFKit GmbH": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/steipete/PSPDFTextView.git",
        "tag": "1.2.0"
    },
    "source_files": "PSPDFTextView/*.{h,m,c}",
    "requires_arc": true
}

Pin It on Pinterest

Share This