Skip to content

Commit

Permalink
Resolves conflicting layout constraints by turning off translatesAuto…
Browse files Browse the repository at this point in the history
…resizingMaskIntoConstraints.

This causes an issue with resizing animations within STAResizingTextField.
  • Loading branch information
Stunner committed Apr 11, 2018
1 parent 052bbdc commit b967a18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions STAControls/Sample/SampleSTATextFieldViewController.m
Expand Up @@ -36,6 +36,7 @@ - (void)viewDidLoad {
self.atmTextField.maxCharacterLength = 8;
self.atmTextField.clearButtonMode = UITextFieldViewModeWhileEditing;
self.atmTextField.delegate = self;
self.atmTextField.translatesAutoresizingMaskIntoConstraints = NO;

self.textField.resignsFirstResponderUponReturnKeyPress = YES;
// self.textField.showNextButton = YES;
Expand All @@ -47,6 +48,7 @@ - (void)viewDidLoad {
self.resizingTextField.placeholder = @"Hello world!";
self.resizingTextField.clearButtonMode = UITextFieldViewModeWhileEditing;
self.resizingTextField.resizesForClearTextButton = YES;
self.resizingTextField.translatesAutoresizingMaskIntoConstraints = NO;
// [self.view addSubview:_resizingTextField];

[self.resizingTextField addTarget:self
Expand Down

0 comments on commit b967a18

Please sign in to comment.