Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override func didUpdateFocusInContext(context: UIFocusUpdateContext, withAnimationCoordinator coordinator: UIFocusAnimationCoordinator) {
- if (self.focused)
- {
- self.imageView.frame.size.width = self.imageView.frame.width+30
- self.imageView.frame.size.height = self.imageView.frame.height+30
- self.imageView.frame.origin.x = self.imageView.frame.origin.x - 15
- self.imageView.frame.origin.y = self.imageView.frame.origin.y - 15
- else
- {
- self.imageView.frame.size.width = self.imageView.frame.width-30
- self.imageView.frame.size.height = self.imageView.frame.height-30
- self.imageView.frame.origin.x = self.imageView.frame.origin.x + 15
- self.imageView.frame.origin.y = self.imageView.frame.origin.y + 15
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement