Questions tagged [rightview]

7 questions
8
votes
2 answers

How to stop the animation of UITextField.rightView?

On my UITextField the rightView property animates in (slides in) from the left when it's shown. I'm unsure how to stop this behaviour from happening?
Andrew
  • 15,935
  • 28
  • 121
  • 203
1
vote
3 answers

Vertically align UIImageView added as rightView of textfield with the text of skyfloatinglabeltextfield

I have added a checkmarkImageView as rightview of a skyfloatinglabeltextfield as follows: let checkmark = UIImage(named: "checkmark") checkmarkImageView = UIImageView(image: checkmark) checkmarkImageView?.frame = CGRect(x: 0.0, y: 0.0, width: 20.0,…
sandpat
  • 1,478
  • 12
  • 30
0
votes
0 answers

Swift textfield rightview button padding

I am building a password field with a button that allows the user to toggle the password visibility. The code makes use of a text field and a toggle button that is in the text field's right view. The padding of the button was defined…
0
votes
1 answer

masnory error when I give a subView of UITextFiled's rightView mas_makeConstraints

this is my code: UIView *nameRightView = ({ UIView *nameRightView = [[UIView alloc] init]; nameRightView.bounds = CGRectMake(0, 0, 100, 34); nameRightView.backgroundColor = [UIColor redColor]; nameTextField.rightView =…
0
votes
4 answers

Tap on rightView of textField when this textField be disabled in Swift?

I have a textField like this: @IBOutlet weak var titleTextField:UITextField! Then I add image beside this textField: titleTextField.rightView = titleImg with titleImg is a imageView. I used UITapGestureRecognizer to tap on titleImg imageView, it…
rome 웃
  • 1,821
  • 3
  • 15
  • 33
0
votes
0 answers

RightView of UITextField don't have the same target

I have a custom UITextField with a rightView containing a custom UIView with a draw rect (arrow) image. How can I get the leftView fire the same action as the textfield? @implementation CustomDropDownTextField -(id)initWithCoder:(NSCoder *)aDecoder…
Moonstar
  • 247
  • 1
  • 4
  • 13
0
votes
3 answers

Unable to set rightview or leftview in textfield of searchbar in ios 7

Purpose: I want to set right view as label in searchbar's textfield Following Code working fine in ios 6 for doing the same thing: UISearchBar *search = [[UISearchBar alloc] init]; [search setTintColor:[UIColor grayColor]]; search.frame =…
Mehul Thakkar
  • 12,440
  • 10
  • 52
  • 81