Skip to content

Commit

Permalink
Merge pull request #9 from Homeisapp/ios_cancelbutton_fix
Browse files Browse the repository at this point in the history
ios cancel button height fix
  • Loading branch information
adylevy authored Jun 7, 2018
2 parents 59f4eeb + 2e62874 commit e052faf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ios/src/ImageCropPicker.m
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,8 @@ - (void)showActivityIndicator:(void (^)(UIActivityIndicatorView*, UIView*))handl

// create Cancel Button

self.btnCancel = [[UIButton alloc]initWithFrame:CGRectMake(0, loadingView.frame.size.height-50, loadingView.frame.size.width, 50)];
float heightButton = loadingView.frame.size.height * 10 / 100;
self.btnCancel = [[UIButton alloc]initWithFrame:CGRectMake(0, loadingView.frame.size.height-heightButton, loadingView.frame.size.width, heightButton)];
[self.btnCancel addTarget:self action:@selector(btnCancelAction:) forControlEvents:UIControlEventTouchUpInside];
[self.btnCancel setTitle:@"Cancel" forState:UIControlStateNormal];
[self.btnCancel setTitle:@"Cancel" forState:UIControlStateSelected];
Expand Down

0 comments on commit e052faf

Please sign in to comment.