TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Mar 2015 |
Maintained by Matteo Gobbi.
MGTextView
extends UITextView
fixing the Apple bugs and offering a couple of useful functionalities.
In details the 2 bugs it goes to fix are:
contentSize
change, it is reculated in the right way;Moreover it offers:
This code must be used under ARC.
If your code doesn't use ARC you can mark this source with the compiler flag -fobjc-arc
In the package is included an example to use this class.
Quick usage:
MGTextView *textView = [[MGTextView alloc] initWithFrame:(CGRect){{20.f, 100.f}, {150.f, 60.f}}];
textView.delegate = self;
[self.view addSubview:textView];
Removing extra spaces:
[textView removeExtraSpaces];
Set a dynamic and auto resizable height:
textView.autoResizableHeight = YES;
Matteo Gobbi
MGTextView is available under the MIT license.