Skip to content

Beniamiiin/BSErrorMessageView

Repository files navigation

BSErrorMessageView

Error message view for text field

Image

Install

pod 'BSErrorMessageView', :git => 'https://github.com/BenjaminSarkisyan/BSErrorMessageView.git'

Usage

Setup message view with default settings

[self.loginTextField bs_setupErrorMessageViewWithMessage:@"Minimum 3 characters"];
[self.emailTextField bs_setupErrorMessageViewWithMessage:@"Incorrect email format"];

Or if you want setup message view, then

BSErrorMessageView *errorMessageView = [BSErrorMessageView errorMessageViewWithMessage:@"Minimum 3 characters"];
errorMessageView.mainTintColor = [UIColor greenColor];
errorMessageView.textFont = [UIFont systemFontOfSize:16.f];

[self.loginTextField bs_setupErrorMessageViewWithView:errorMessageView];

Show/hide methods

[self.loginTextField bs_showError];
[self.emailTextField bs_hideError];

About

Error message view for text field

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published