• Stars
    star
    193
  • Rank 194,730 (Top 4 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created almost 9 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Error message view for text field

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];