[](https://travis-ci.org/Ersen Tekin/ETWinkerField)
####Via Storyboard
You can put a UITextField
on storyboard and set it's class as ETWinkerField
. You can access through Identity Inspector Here's a screenshot.
// wink images
UIImage* iconImageShown = [UIImage imageNamed:@"wink.png"];
UIImage* iconImageHidden = [UIImage imageNamed:@"wink-hidden.png"];
// ATTENTION!
// insert hidden image FIRST
NSMutableArray* arrayImages = [[NSMutableArray alloc] initWithObjects:iconImageHidden, iconImageShown, nil];
self.passwordTextField.arrayStatusImages = [arrayImages mutableCopy];
ETWinkerField is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "ETWinkerField"
Then run pod install
- Add test coverage
- Fix irrelevant spacing after hide-to-show switch.
Ersen Tekin, [email protected]
ETWinkerField is available under the MIT license. See the LICENSE file for more info.