Skip to content

Commit

Permalink
fixed frame issues with textfields and warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nimati committed Oct 30, 2016
1 parent 391fb81 commit 8a8f0d0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Example/FCAlertView/ExampleViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ - (IBAction)showAlert:(id)sender {

[alert showAlertInView:self
withTitle:_alertTitle
withSubtitle:@"This is my alert's subtitle. Keep it short and concise. 😜"
withSubtitle:@"This is my alert's subtitle. Keep it short and concise. 😜 This is my alert's subtitle. Keep it short and concise. 😜"
withCustomImage:_alertImage
withDoneButtonTitle:nil
andButtons:self.arrayOfButtonTitles];
Expand Down
3 changes: 2 additions & 1 deletion Example/Pods/FCAlertView/FCAlertView/Classes/FCAlertView.m

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion FCAlertView.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'FCAlertView'
s.version = '1.2.1'
s.version = '1.2.2'
s.summary = 'FCAlertView is a Flat Customizable AlertView'

# This description is used to generate tags and improve search results.
Expand Down
3 changes: 2 additions & 1 deletion FCAlertView/Classes/FCAlertView.m
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ - (void)drawRect:(CGRect)rect {

if (alertTextFields.count > 0) {

_textField = [[UITextField alloc] initWithFrame:CGRectMake(12.5, descriptionLabel.frame.size.height + descriptionLabel.frame.origin.y + 3, alertViewFrame.size.width - 25, 40)];
_textField = [[UITextField alloc] initWithFrame:CGRectMake(12.5, descriptionLabel.frame.size.height + descriptionLabel.frame.origin.y + 10.5, alertViewFrame.size.width - 25, 40)];

_textField.layer.cornerRadius = 3.0f;
_textField.layer.masksToBounds = YES;
Expand Down Expand Up @@ -1497,6 +1497,7 @@ - (BOOL)textFieldShouldReturn:(UITextField *)textField {

[textField endEditing:YES];

return TRUE;
}

#pragma mark - Rating System Trigger Methods
Expand Down

0 comments on commit 8a8f0d0

Please sign in to comment.