WCTextField is a subclass of UITextField, fixing some issues and adding some features.
There are some issues with UITextField on iOS 7-9 as followings:
- When toggle
secureTextEntry
YES to NO and the cursor at trail, will show some unwanted spaces
![Demo gif](Documentation/issue - more spaces.gif)
-
When
secureTextEntry
is NO, input some text, then togglesecureTextEntry
to YES and back to NO, the text's font changed -
When
secureTextEntry
is YES, the cursor in the middle of text, and togglesecureTextEntry
to NO, the cursor's position is not correct
-
top and bottom separators
-
disable or allow showing Copy & Cut menu
-
disable or allow showing Paste menu
-
disable or allow showing Magnifier
-
disable or allow Selectable
- ARC
- iOS 7+
WCTextField is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "WCTextField"
wesley_chen, [email protected]
WCTextField is available under the MIT license. See the LICENSE file for more info.