Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. override func viewDidAppear(animated: Bool)
  2. {
  3. initView()
  4. _gridLines = false
  5.  
  6. }
  7.  
  8. func initView()
  9. {
  10. _cameraFeed.initAfterLoad()
  11. //center the buttons on half distance between middle button and screen edge
  12. var middleDistance:CGFloat = _swapButton.frame.origin.x + _swapButton.frame.width/2
  13. _linesButton.frame.origin.x = middleDistance/2 - _linesButton.frame.width/2
  14. _flashButton.frame.origin.x = middleDistance + middleDistance/2 - _flashButton.frame.width/2
  15. _selectPhotos.frame.origin.x = middleDistance/2 - _selectPhotos.frame.width/2
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement