Guest User

Untitled

a guest
Oct 18th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. {
  2. didSet
  3. {
  4. updateRightView()
  5. }
  6. }
  7.  
  8. {
  9. //for right Image
  10. if let image = rightImage
  11. {
  12.  
  13. button.imageEdgeInsets = UIEdgeInsetsMake(0, -16, 0, 0)
  14. button.frame = CGRect(x: 0, y: 0, width: 29, height: 29)
  15. // button.addTarget(self, action: #selector(self.refresh), for: .touchUpInside)
  16. rightView = button
  17. rightViewMode = .always
  18.  
  19. } else
  20. {
  21. rightViewMode = UITextFieldViewMode.never
  22. rightView = nil
  23. }
  24. }
Add Comment
Please, Sign In to add comment