Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. override func didUpdateFocusInContext(context: UIFocusUpdateContext, withAnimationCoordinator coordinator: UIFocusAnimationCoordinator) {
  2. if (self.focused)
  3. {
  4.  
  5.  
  6. self.imageView.frame.size.width = self.imageView.frame.width+30
  7. self.imageView.frame.size.height = self.imageView.frame.height+30
  8.  
  9. self.imageView.frame.origin.x = self.imageView.frame.origin.x - 15
  10. self.imageView.frame.origin.y = self.imageView.frame.origin.y - 15
  11.  
  12.  
  13. else
  14. {
  15.  
  16. self.imageView.frame.size.width = self.imageView.frame.width-30
  17. self.imageView.frame.size.height = self.imageView.frame.height-30
  18.  
  19. self.imageView.frame.origin.x = self.imageView.frame.origin.x + 15
  20. self.imageView.frame.origin.y = self.imageView.frame.origin.y + 15
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement