UIButton+AppLocale.m 563 B

1234567891011121314151617181920212223
  1. //
  2. // UIButton+AppLocale.m
  3. // Pods
  4. //
  5. // Created by Yeung Yiu Hung on 19/2/2016.
  6. //
  7. //
  8. #import "UIButton+AppLocale.h"
  9. @implementation UIButton (AppLocale)
  10. - (void)setLocalizedString{
  11. // if ([self respondsToSelector:@selector(localizedKey)] && self.localizedKey.length != 0) {
  12. // [self setTitle:AMLocalizedString(self.localizedKey, nil) forState:UIControlStateNormal];
  13. // }
  14. [self setTitle:ASLocalizedString(self.titleLabel.text) forState:UIControlStateNormal];
  15. [LocalizationSystem checkXibString:self.titleLabel.text];
  16. }
  17. @end